public enum AdviceType extends Enum<AdviceType>
Bind
annotation.Bind
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.