Package com.evolveum.midpoint.ninja.impl
Enum NinjaApplicationContextLevel
- java.lang.Object
-
- java.lang.Enum<NinjaApplicationContextLevel>
-
- com.evolveum.midpoint.ninja.impl.NinjaApplicationContextLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<NinjaApplicationContextLevel>
public enum NinjaApplicationContextLevel extends Enum<NinjaApplicationContextLevel>
Represents different levels of Spring application context initialization for midpoint. Each ninja action requires different levels of midpoint being initialized, starting fromNONE
up toFULL_REPOSITORY
with full repository/audit initialization.- Author:
- Viliam Repan
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULL_REPOSITORY
Full repository and audit layer initialization.NO_REPOSITORY
Midpoint configuration and prism related beans are initialized.NONE
No initialization required.STARTUP_CONFIGURATION
Only midpoint configuration related beans are initialized.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsPrismInitialization()
static NinjaApplicationContextLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static NinjaApplicationContextLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final NinjaApplicationContextLevel NONE
No initialization required.
-
STARTUP_CONFIGURATION
public static final NinjaApplicationContextLevel STARTUP_CONFIGURATION
Only midpoint configuration related beans are initialized.
-
NO_REPOSITORY
public static final NinjaApplicationContextLevel NO_REPOSITORY
Midpoint configuration and prism related beans are initialized.
-
FULL_REPOSITORY
public static final NinjaApplicationContextLevel FULL_REPOSITORY
Full repository and audit layer initialization.
-
-
Field Detail
-
contexts
public final String[] contexts
-
-
Method Detail
-
values
public static NinjaApplicationContextLevel[] 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 (NinjaApplicationContextLevel c : NinjaApplicationContextLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NinjaApplicationContextLevel 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
-
containsPrismInitialization
public boolean containsPrismInitialization()
-
-