Enum ExtensionRegistryType
- java.lang.Object
-
- java.lang.Enum<ExtensionRegistryType>
-
- org.jboss.as.controller.extension.ExtensionRegistryType
-
- All Implemented Interfaces:
Serializable
,Comparable<ExtensionRegistryType>
public enum ExtensionRegistryType extends Enum<ExtensionRegistryType>
Enum of places an extension registry can be added- Author:
- Kabir Khan
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HOST
The extension registry is for the host model part in a host controller.MASTER
The extension registry is for the domain model part in a host controller running as a slave.SERVER
The extension registry is for a standalone or managed server.SLAVE
The extension registry is for the domain model part in a host controller running as a slave.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtensionContext.ContextType
getContextType()
static ExtensionRegistryType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExtensionRegistryType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVER
public static final ExtensionRegistryType SERVER
The extension registry is for a standalone or managed server.
-
HOST
public static final ExtensionRegistryType HOST
The extension registry is for the host model part in a host controller.
-
MASTER
public static final ExtensionRegistryType MASTER
The extension registry is for the domain model part in a host controller running as a slave. NB it is not known during bootup of the host.xml part if we are a slave or not. But once we reach the domain part it is known.
-
SLAVE
public static final ExtensionRegistryType SLAVE
The extension registry is for the domain model part in a host controller running as a slave. NB it is not known during bootup of the host.xml part if we are a slave or not. But once we reach the domain part it is known.
-
-
Method Detail
-
values
public static ExtensionRegistryType[] 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 (ExtensionRegistryType c : ExtensionRegistryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExtensionRegistryType 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
-
getContextType
public ExtensionContext.ContextType getContextType()
-
-