public enum AdviceType extends Enum<AdviceType>
For internal use only.
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 are declared.
|
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
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 nullpublic 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>
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.