|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AdviceType>
org.jboss.aop.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.
Use this class to specify the type of the advice on a
Bind
annotation.
Bind
Enum Constant Summary | |
---|---|
AFTER
Advice will be invoked after the joinpoint execution, only if it returns normally. |
|
AROUND
Advice will be invoked before the joinpoint execution. |
|
BEFORE
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. |
|
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 | |
---|---|
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 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 AdviceType AROUND
public static final AdviceType BEFORE
public static final AdviceType AFTER
public static final AdviceType THROWING
public static final AdviceType FINALLY
Method Detail |
---|
public static 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 name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |