KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > prose > crosscut > CrosscutGroup


1 //
2
// This file is part of the prose package.
3
//
4
// The contents of this file are subject to the Mozilla Public License
5
// Version 1.1 (the "License"); you may not use this file except in
6
// compliance with the License. You may obtain a copy of the License at
7
// http://www.mozilla.org/MPL/
8
//
9
// Software distributed under the License is distributed on an "AS IS" basis,
10
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
// for the specific language governing rights and limitations under the
12
// License.
13
//
14
// The Original Code is prose.
15
//
16
// The Initial Developer of the Original Code is Andrei Popovici. Portions
17
// created by Andrei Popovici are Copyright (C) 2002 Andrei Popovici.
18
// All Rights Reserved.
19
//
20
// Contributor(s):
21
// $Id: CrosscutGroup.java,v 1.1.1.1 2003/07/02 15:30:51 apopovic Exp $
22
// =====================================================================
23
//
24
// (history at end)
25
//
26

27 package ch.ethz.prose.crosscut;
28
29 // used packages
30
import java.util.*;
31 import java.io.*;
32
33 /**
34  * Class CrosscutGroup defines a common behavior for a group
35  * crosscut objects. The members of a group execute or
36  * do not execute advice depending on the state of thi
37  * group.
38  *
39  * @version $Revision: 1.1.1.1 $
40  * @author Andrei Popovici
41  */

42 public
43 class CrosscutGroup implements Serializable {
44
45     protected boolean executeAdvice = true;
46
47   /** Allow the execution of advices in this group.
48    *
49    */

50     public void setExecuteAdvice(boolean execAdvice)
51     {
52     executeAdvice=execAdvice;
53     }
54
55     public String JavaDoc toString()
56     {
57     return "CrosscutGroup:" + System.identityHashCode(this) + ".executeAdvice:" + executeAdvice;
58     }
59 }
60
61
62 //======================================================================
63
//
64
// $Log: CrosscutGroup.java,v $
65
// Revision 1.1.1.1 2003/07/02 15:30:51 apopovic
66
// Imported from ETH Zurich
67
//
68
// Revision 1.3 2003/05/26 13:28:52 popovici
69
// Documentation Improvements
70
//
71
// Revision 1.2 2003/05/06 15:51:29 popovici
72
// Mozilla-ification
73
//
74
// Revision 1.1 2003/05/05 13:58:12 popovici
75
// renaming from runes to prose
76
//
77
// Revision 1.3 2003/04/29 16:58:34 pfalcari
78
// Serialization bug fix; the 'initState' was called only on the client side due to not-transient 'isInitialized'
79
//
80
// Revision 1.2 2003/04/17 12:49:19 popovici
81
// Refactoring of the crosscut package
82
// ExceptionCut renamed to ThrowCut
83
// McutSignature is now SignaturePattern
84
//
85
// Revision 1.1 2003/04/17 08:47:17 popovici
86
// Important functionality additions
87
// - Cflow specializers
88
// - Restructuring of the MethodCut, SetCut, ThrowCut, and GetCut (they are much smaller)
89
// - Transactional capabilities
90
// - Total refactoring of Specializer evaluation, which permits fine-grained distinction
91
// between static and dynamic specializers.
92
// - Functionality pulled up in abstract classes
93
// - Uniformization of advice methods patterns and names
94
//
95
Popular Tags