public interface ExtensionContext
| Modifier and Type | Interface and Description |
|---|---|
static class |
ExtensionContext.ContextType
The various types of contexts in which an
Extension can be asked to initialize. |
| Modifier and Type | Method and Description |
|---|---|
PathManager |
getPathManager()
|
ProcessType |
getProcessType()
Gets the type of the current process.
|
RunningMode |
getRunningMode()
Gets the current running mode of the process.
|
ExtensionContext.ContextType |
getType()
Gets the type of this context.
|
boolean |
isRegisterTransformers()
Deprecated.
|
boolean |
isRuntimeOnlyRegistrationValid()
Gets whether it is valid for the extension to register resources, attributes or operations that do not
involve the persistent configuration, but rather only involve runtime services.
|
SubsystemRegistration |
registerSubsystem(String name,
int majorVersion,
int minorVersion)
Deprecated.
|
SubsystemRegistration |
registerSubsystem(String name,
int majorVersion,
int minorVersion,
int microVersion)
Deprecated.
|
SubsystemRegistration |
registerSubsystem(String name,
int majorVersion,
int minorVersion,
int microVersion,
boolean deprecated)
Deprecated.
|
SubsystemRegistration |
registerSubsystem(String name,
ModelVersion version)
|
SubsystemRegistration |
registerSubsystem(String name,
ModelVersion version,
boolean deprecated)
Register a new subsystem type.
|
SubsystemRegistration registerSubsystem(String name, ModelVersion version)
name - the name of the subsystemversion - the version of the subsystem's management interface.SubsystemRegistrationIllegalStateException - if the subsystem name has already been registeredSubsystemRegistration registerSubsystem(String name, ModelVersion version, boolean deprecated)
The new subsystem registration must register a handler and description for the
add operation at its root address. The new subsystem registration must register a
remove operation at its root address.
name - the name of the subsystemversion - the version of the subsystem's management interface.deprecated - mark this extension as deprecatedSubsystemRegistrationIllegalStateException - if the subsystem name has already been registered@Deprecated SubsystemRegistration registerSubsystem(String name, int majorVersion, int minorVersion)
registerSubsystem(String, ModelVersion)name - the name of the subsystemmajorVersion - the major version of the subsystem's management interfaceminorVersion - the minor version of the subsystem's management interfaceSubsystemRegistrationIllegalStateException - if the subsystem name has already been registered@Deprecated SubsystemRegistration registerSubsystem(String name, int majorVersion, int minorVersion, int microVersion)
registerSubsystem(String, ModelVersion)
The new subsystem registration must register a handler and description for the
add operation at its root address. The new subsystem registration must register a
remove operation at its root address.
name - the name of the subsystemmajorVersion - the major version of the subsystem's management interfaceminorVersion - the minor version of the subsystem's management interfacemicroVersion - the micro version of the subsystem's management interfaceSubsystemRegistrationIllegalStateException - if the subsystem name has already been registered@Deprecated SubsystemRegistration registerSubsystem(String name, int majorVersion, int minorVersion, int microVersion, boolean deprecated)
registerSubsystem(String, ModelVersion, boolean)
The new subsystem registration must register a handler and description for the
add operation at its root address. The new subsystem registration must register a
remove operation at its root address.
name - the name of the subsystemmajorVersion - the major version of the subsystem's management interfaceminorVersion - the minor version of the subsystem's management interfacemicroVersion - the micro version of the subsystem's management interfacedeprecated - mark this extension as deprecatedSubsystemRegistrationIllegalStateException - if the subsystem name has already been registeredExtensionContext.ContextType getType()
nullProcessType getProcessType()
nullRunningMode getRunningMode()
nullboolean isRuntimeOnlyRegistrationValid()
PathManager getPathManager()
nullIllegalStateException - if the process is not a server@Deprecated boolean isRegisterTransformers()
ExtensionTransformerRegistration#getProcessType().isHostController() is true and the
process controller is the master domain controller.true if transformers should be registeredCopyright © 2021 JBoss by Red Hat. All rights reserved.