| Modifier and Type | Class and Description |
|---|---|
class |
ExtensionRegistry.ExtensionContextImpl |
class |
ExtensionRegistry.ExtensionInfo |
class |
ExtensionRegistry.SubsystemRegistrationImpl |
| Constructor and Description |
|---|
ExtensionRegistry(ProcessType processType,
RunningModeControl runningModeControl)
Deprecated.
Here for core-model-test and subsystem-test backwards compatibility
|
ExtensionRegistry(ProcessType processType,
RunningModeControl runningModeControl,
ManagedAuditLogger auditLogger,
JmxAuthorizer authorizer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the registry to prepare for re-registration (e.g.
|
Map<String,SubsystemInformation> |
getAvailableSubsystems(String moduleName)
Gets information about the subsystems provided by a given
Extension. |
ExtensionContext |
getExtensionContext(String moduleName)
Deprecated.
|
ExtensionContext |
getExtensionContext(String moduleName,
boolean isMasterDomainController)
Gets an
ExtensionContext for use when handling an add operation for
a resource representing an Extension. |
Set<String> |
getExtensionModuleNames()
Gets the module names of all known
Extensions. |
ExtensionParsingContext |
getExtensionParsingContext(String moduleName,
org.jboss.staxmapper.XMLMapper xmlMapper)
Gets an
ExtensionParsingContext for use when
initializing the extension's parsers. |
ProcessType |
getProcessType()
Gets the type of the current process.
|
Set<ProfileParsingCompletionHandler> |
getProfileParsingCompletionHandlers() |
ManagementResourceRegistration |
getProfileRegistration() |
SubsystemInformation |
getSubsystemInfo(String name) |
TransformerRegistry |
getTransformerRegistry() |
Set<String> |
getUnnamedNamespaces(String moduleName)
Gets the URIs (in string form) of any XML namespaces
registered by an extension without an accompanying subsystem name
that could not be clearly associated with a single subsystem. |
void |
recordSubsystemVersions(String moduleName,
org.jboss.dmr.ModelNode subsystems)
Records the versions of the subsystems associated with the given
moduleName as properties in the
provided ModelNode. |
void |
removeExtension(Resource rootResource,
String moduleName)
Cleans up a module's subsystems from the resource registration model.
|
void |
setPathManager(PathManager pathManager)
Sets the
PathManager to provide via the ExtensionContext. |
void |
setSubsystemParentResourceRegistrations(ManagementResourceRegistration profileResourceRegistration,
ManagementResourceRegistration deploymentsResourceRegistration)
Sets the
ManagementResourceRegistrations for the resource under which subsystem child resources
should be registered. |
void |
setWriterRegistry(SubsystemXmlWriterRegistry writerRegistry)
Sets the
SubsystemXmlWriterRegistry to use for storing subsystem marshallers. |
public ExtensionRegistry(ProcessType processType, RunningModeControl runningModeControl, ManagedAuditLogger auditLogger, JmxAuthorizer authorizer)
@Deprecated public ExtensionRegistry(ProcessType processType, RunningModeControl runningModeControl)
processType - runningModeControl - public ProcessType getProcessType()
public void setWriterRegistry(SubsystemXmlWriterRegistry writerRegistry)
SubsystemXmlWriterRegistry to use for storing subsystem marshallers.writerRegistry - the writer registrypublic void setPathManager(PathManager pathManager)
PathManager to provide via the ExtensionContext.pathManager - the path managerpublic void setSubsystemParentResourceRegistrations(ManagementResourceRegistration profileResourceRegistration, ManagementResourceRegistration deploymentsResourceRegistration)
ManagementResourceRegistrations for the resource under which subsystem child resources
should be registered.profileResourceRegistration - the ManagementResourceRegistration for the resource under which
subsystem child resources should be registered. Cannot be nulldeploymentsResourceRegistration - the ManagementResourceRegistration for the deployments resource.
May be null if deployment resources are not supportedpublic ManagementResourceRegistration getProfileRegistration()
public SubsystemInformation getSubsystemInfo(String name)
public Set<String> getExtensionModuleNames()
Extensions.nullpublic Map<String,SubsystemInformation> getAvailableSubsystems(String moduleName)
Extension.moduleName - the name of the extension's module. Cannot be nullpublic ExtensionParsingContext getExtensionParsingContext(String moduleName, org.jboss.staxmapper.XMLMapper xmlMapper)
ExtensionParsingContext for use when
initializing the extension's parsers.moduleName - the name of the extension's module. Cannot be nullxmlMapper - the XMLMapper handling the extension parsing. Can be null if there won't
be any actual parsing (e.g. in a slave Host Controller or in a server in a managed domain)ExtensionParsingContext. Will not return nullpublic ExtensionContext getExtensionContext(String moduleName, boolean isMasterDomainController)
ExtensionContext for use when handling an add operation for
a resource representing an Extension.moduleName - the name of the extension's module. Cannot be nullisMasterDomainController - set to true if we are the master domain controller, in which case transformers get registeredExtensionContext. Will not return nullIllegalStateException - if no setSubsystemParentResourceRegistrations(ManagementResourceRegistration, ManagementResourceRegistration) profile resource registration has been set}@Deprecated public ExtensionContext getExtensionContext(String moduleName)
getExtensionContext(String, boolean)moduleName - the name of the extension's module. Cannot be nullExtensionContext. Will not return nullpublic Set<String> getUnnamedNamespaces(String moduleName)
registered by an extension without an accompanying subsystem name
that could not be clearly associated with a single subsystem. If an extension registers namespaces with no
subsystem names but only has a single subsystem, the namespace can be clearly associated with that single
subsystem and will not appear as part of the result of this method.moduleName - the name of the extension's module. Cannot be nullnullpublic Set<ProfileParsingCompletionHandler> getProfileParsingCompletionHandlers()
public void removeExtension(Resource rootResource, String moduleName) throws IllegalStateException
rootResource - the model root resourcemoduleName - the name of the extension's module. Cannot be nullIllegalStateException - if the extension still has subsystems present in rootResource or its childrenpublic void clear()
public void recordSubsystemVersions(String moduleName, org.jboss.dmr.ModelNode subsystems)
moduleName as properties in the
provided ModelNode. Each subsystem property key will be the subsystem name and the value will be
a string composed of the subsystem major version dot appended to its minor version.moduleName - the name of the extension modulesubsystems - a model node of type ModelType.UNDEFINED or type ModelType.OBJECTpublic TransformerRegistry getTransformerRegistry()
Copyright © 2014 JBoss by Red Hat. All rights reserved.