Enum ManagementContextType
- java.lang.Object
- java.lang.Enum<ManagementContextType>
- org.springframework.boot.actuate.autoconfigure.web.ManagementContextType
- All Implemented Interfaces:
Serializable
,Comparable<ManagementContextType>
public enum ManagementContextType extends Enum<ManagementContextType>
Enumeration of management context types.- Since:
- 2.0.0
Enum Constant Summary
Enum Constants Enum Constant Description ANY
The management context can be either the same as the main application context or a child of the main application context.CHILD
The management context is a separate context that is a child of the main application context.SAME
The management context is the same as the main application context.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ManagementContextType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ManagementContextType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
SAME
public static final ManagementContextType SAME
The management context is the same as the main application context.
CHILD
public static final ManagementContextType CHILD
The management context is a separate context that is a child of the main application context.
ANY
public static final ManagementContextType ANY
The management context can be either the same as the main application context or a child of the main application context.
Method Detail
values
public static ManagementContextType[] 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 (ManagementContextType c : ManagementContextType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static ManagementContextType 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