Package org.wso2.carbon.context
Enum RegistryType
- java.lang.Object
-
- java.lang.Enum<RegistryType>
-
- org.wso2.carbon.context.RegistryType
-
- All Implemented Interfaces:
Serializable,Comparable<RegistryType>
public enum RegistryType extends Enum<RegistryType>
An enumeration of types describing the type of registry used. The proper registry type must be used when obtaining an instance of the registry from the carbon context.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOCAL_REPOSITORYThe local repository of the system.SYSTEM_CONFIGURATIONThe configuration registry of the system.SYSTEM_GOVERNANCEThe governance registry of the system.USER_CONFIGURATIONThe configuration registry of the currently logged in user.USER_GOVERNANCEThe governance registry of the currently logged in user.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RegistryTypevalueOf(String name)Returns the enum constant of this type with the specified name.static RegistryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER_CONFIGURATION
public static final RegistryType USER_CONFIGURATION
The configuration registry of the currently logged in user.
-
USER_GOVERNANCE
public static final RegistryType USER_GOVERNANCE
The governance registry of the currently logged in user.
-
SYSTEM_CONFIGURATION
public static final RegistryType SYSTEM_CONFIGURATION
The configuration registry of the system.
-
SYSTEM_GOVERNANCE
public static final RegistryType SYSTEM_GOVERNANCE
The governance registry of the system.
-
LOCAL_REPOSITORY
public static final RegistryType LOCAL_REPOSITORY
The local repository of the system.
-
-
Method Detail
-
values
public static RegistryType[] 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 (RegistryType c : RegistryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegistryType 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
-
-