|
JBoss AOP Parent POM 2.2.2.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Scope>
org.jboss.aop.advice.Scope
public enum Scope
Defines the lifecycle of an aspect or interceptor instance.
When not specified, the default scope of an aspect or interceptor is
PER_VM
.
Enum Constant Summary | |
---|---|
PER_CLASS
An instance of the aspect will be created for each advised class. |
|
PER_CLASS_JOINPOINT
An instance of the aspect will be created for each advised joinpoint. |
|
PER_INSTANCE
An instance of the aspect will be created for each advised instance. |
|
PER_JOINPOINT
An instance of the aspect will be created for each advised joinpoint execution. |
|
PER_VM
A single instance of the aspect will be created to intercept any joinpoints during the Java VM execution. |
Method Summary | |
---|---|
static Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Scope[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Scope PER_VM
public static final Scope PER_CLASS
public static final Scope PER_INSTANCE
public static final Scope PER_JOINPOINT
public static final Scope PER_CLASS_JOINPOINT
Method Detail |
---|
public static Scope[] values()
for (Scope c : Scope.values()) System.out.println(c);
public static Scope valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
JBoss AOP Parent POM 2.2.2.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |