public enum InvocationType extends java.lang.Enum<InvocationType>
Enum Constant and Description |
---|
ENTER
The probe method will be called before any code of the intercepted method is called.
|
EXCEPTION
The probe method will be called when the intercepted method throws an exception.
|
EXIT
The probe method will be called when the intercepted method exits, either by returning normally or by throwing an exception.
|
RETURN
The probe method will be called when the intercepted method returns normally.
|
Modifier and Type | Method and Description |
---|---|
static InvocationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InvocationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvocationType ENTER
ReturnValue
or ExceptionValue
parameters
for methods of this type.public static final InvocationType EXIT
ReturnValue
and ExceptionValue
parameters for methods of this type. If the intercepted method returns normally, the ExceptionValue
parameter will be null
.
If the method throws an exception, the ReturnValue
parameter will be null
.
This type cannot be used for constructors.
public static final InvocationType RETURN
ReturnValue
parameter, but no ExceptionValue
parameter for methods of this type.public static final InvocationType EXCEPTION
ExceptionValue
parameter, but no ReturnValue
parameter for methods of this type.
This type cannot be used for constructors.
public static InvocationType[] values()
for (InvocationType c : InvocationType.values()) System.out.println(c);
public static InvocationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null