public class ExtensionRegistry.ExtensionContextImpl extends Object implements ExtensionContext
Modifier and Type | Method and Description |
---|---|
AuditLogger |
getAuditLogger(boolean inheritConfiguration,
boolean manualCommit)
This method is only for internal use.
|
JmxAuthorizer |
getAuthorizer()
This method is only for internal use.
|
PathManager |
getPathManager()
|
ProcessType |
getProcessType()
Gets the type of the current process.
|
RunningMode |
getRunningMode()
Gets the current running mode of the process.
|
boolean |
isRegisterTransformers()
Returns true if subsystems should register transformers.
|
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)
Convenience variant of
ExtensionContext.registerSubsystem(String, int, int, int) that uses 0
as the microVersion . |
SubsystemRegistration |
registerSubsystem(String name,
int majorVersion,
int minorVersion,
int microVersion)
Register a new subsystem type.
|
SubsystemRegistration |
registerSubsystem(String name,
int majorVersion,
int minorVersion,
int microVersion,
boolean deprecated)
Register a new subsystem type.
|
public SubsystemRegistration registerSubsystem(String name, int majorVersion, int minorVersion) throws IllegalArgumentException, IllegalStateException
ExtensionContext
ExtensionContext.registerSubsystem(String, int, int, int)
that uses 0
as the microVersion
.registerSubsystem
in interface ExtensionContext
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 registeredIllegalArgumentException
public SubsystemRegistration registerSubsystem(String name, int majorVersion, int minorVersion, int microVersion)
ExtensionContext
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.
registerSubsystem
in interface ExtensionContext
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
public SubsystemRegistration registerSubsystem(String name, int majorVersion, int minorVersion, int microVersion, boolean deprecated)
ExtensionContext
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.
registerSubsystem
in interface ExtensionContext
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
public ProcessType getProcessType()
ExtensionContext
getProcessType
in interface ExtensionContext
null
public RunningMode getRunningMode()
ExtensionContext
getRunningMode
in interface ExtensionContext
null
public boolean isRuntimeOnlyRegistrationValid()
ExtensionContext
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;
isRuntimeOnlyRegistrationValid
in interface ExtensionContext
public PathManager getPathManager()
ExtensionContext
getPathManager
in interface ExtensionContext
null
public boolean isRegisterTransformers()
ExtensionContext
ExtensionContext.getProcessType()
equals ProcessType.HOST_CONTROLLER
and the
process controller is the master domain controller.isRegisterTransformers
in interface ExtensionContext
true
if transformers should be registeredpublic AuditLogger getAuditLogger(boolean inheritConfiguration, boolean manualCommit)
public JmxAuthorizer getAuthorizer()
Copyright © 2014 JBoss by Red Hat. All rights reserved.