Package org.kohsuke.stapler.interceptor
Enum Stage
- java.lang.Object
-
- java.lang.Enum<Stage>
-
- org.kohsuke.stapler.interceptor.Stage
-
- All Implemented Interfaces:
Serializable
,Comparable<Stage>
public enum Stage extends Enum<Stage>
Determines when interception happens.- Since:
- 1.239
- Author:
- Kohsuke Kawaguchi
- See Also:
InterceptorAnnotation.stage()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PREINVOKE
Right before the dispatch of the method, after all theInjectedParameter
s are processed.SELECTION
During the method selection, before all theInjectedParameter
s are processed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stage
valueOf(String name)
Returns the enum constant of this type with the specified name.static Stage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SELECTION
public static final Stage SELECTION
During the method selection, before all theInjectedParameter
s are processed.
-
PREINVOKE
public static final Stage PREINVOKE
Right before the dispatch of the method, after all theInjectedParameter
s are processed.
-
-
Method Detail
-
values
public static Stage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Stage c : Stage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Stage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-