| Modifier and Type | Class and Description |
|---|---|
static interface |
ExtensionRegistry.SubsystemInformation |
| Constructor and Description |
|---|
ExtensionRegistry(ProcessType processType,
RunningModeControl runningModeControl) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the registry to prepare for re-registration (e.g.
|
Map<String,ExtensionRegistry.SubsystemInformation> |
getAvailableSubsystems(String moduleName)
Gets information about the subsystems provided by a given
Extension. |
ExtensionContext |
getExtensionContext(String moduleName)
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<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 |
removeExtension(Resource rootResource,
String moduleName)
Cleans up a module's subsystems from the resource registration model.
|
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)
public ProcessType getProcessType()
public void setWriterRegistry(SubsystemXmlWriterRegistry writerRegistry)
SubsystemXmlWriterRegistry to use for storing subsystem marshallers.writerRegistry - the writer registrypublic 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 Set<String> getExtensionModuleNames()
Extensions.nullpublic Map<String,ExtensionRegistry.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)
ExtensionContext for use when handling an add operation for
a resource representing an Extension.moduleName - the name of the extension's module. Cannot be nullExtensionContext. Will not return nullIllegalStateException - if no setSubsystemParentResourceRegistrations(ManagementResourceRegistration, ManagementResourceRegistration) profile resource registration has been set}public 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 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()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.