|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<AdviceType> org.jboss.aop.advice.AdviceType
public enum AdviceType
Indicates whether the type of an advice is before, around,
after, throwing or finally.
Notice that interceptors are a special type of around advices.
For internal use only.
Enum Constant Summary | |
---|---|
AFTER
Advice will be invoked after the joinpoint execution, only if it returns normally. |
|
AROUND
Advice will be invoked around the joinpoint execution, and as such is responsible for invoking the next advice in the chain and returning the joinpoint result value. |
|
BEFORE
Advice will be invoked before the joinpoint execution. |
|
FINALLY
Advice will be invoked after the joinpoint execution, regardless of how it returns. |
|
THROWING
Advice will be invoked after the joinpoint execution, only if it throws an exception. |
Method Summary | |
---|---|
String |
getAccessor()
Returns an accessor string for this type. |
AdviceMethodFactory |
getFactory()
An advice method factory for this type. |
String |
getName()
Returns a lower case name of this type. |
boolean |
isGeneratedOnly()
Indicates if the use of this advice type is restrictive to the generated advisor mode, or if it can be used on all instrumentation modes. |
String |
toString()
Returns the verbose description of this type (for use on output). |
static AdviceType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AdviceType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final AdviceType BEFORE
public static final AdviceType AROUND
public static final AdviceType AFTER
public static final AdviceType THROWING
public static final AdviceType FINALLY
Method Detail |
---|
public static final AdviceType[] values()
for(AdviceType c : AdviceType.values()) System.out.println(c);
public static AdviceType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic final String getName()
public final String getAccessor()
"get"
with the
the description
starting with an upper case.
public final AdviceMethodFactory getFactory()
public final boolean isGeneratedOnly()
true
only if this advice type must be used on generated
advisor mode.public String toString()
toString
in class Enum<AdviceType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |