public interface ExtensionContext
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.
|
boolean |
isRegisterTransformers()
Deprecated.
Experimental, the way transformers are registered may change to be the same as we do for parsers
|
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.SubsystemRegistration
IllegalStateException
- 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 deprecatedSubsystemRegistration
IllegalStateException
- 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 interfaceSubsystemRegistration
IllegalStateException
- 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 interfaceSubsystemRegistration
IllegalStateException
- 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 deprecatedSubsystemRegistration
IllegalStateException
- if the subsystem name has already been registeredProcessType getProcessType()
null
RunningMode getRunningMode()
null
boolean isRuntimeOnlyRegistrationValid()
ADMIN_ONLY
, where again the
runtime services associated with a subsystem typically would not be installedThis method is a shorthand for:
boolean valid = context.getProcessType().isServer() && context.getRunningMode() != RunningMode.ADMIN_ONLY;
PathManager getPathManager()
null
IllegalStateException
- if the process is not a server
@Deprecated boolean isRegisterTransformers()
getProcessType()
equals ProcessType.HOST_CONTROLLER
and the
process controller is the master domain controller.true
if transformers should be registeredCopyright © 2023 JBoss by Red Hat. All rights reserved.