Class AbstractLegacyExtension
- java.lang.Object
-
- org.jboss.as.controller.extension.AbstractLegacyExtension
-
- All Implemented Interfaces:
Extension
public abstract class AbstractLegacyExtension extends Object implements Extension
Abstract superclass forExtension
implementations where the extension is no longer supported for use on current version servers but is supported on host controllers in order to allow use of the extension on legacy version hosts in a mixed-version domain.- Author:
- Brian Stansberry (c) 2013 Red Hat Inc.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractLegacyExtension(String extensionName, String... subsystemNames)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
initialize(ExtensionContext context)
Initialize this extension by registering its operation handlers and configuration marshaller with the givenExtensionContext
.protected abstract Set<ManagementResourceRegistration>
initializeLegacyModel(ExtensionContext context)
Perform the work that a non-legacy extension would perform ininitialize(org.jboss.as.controller.ExtensionContext)
, except no handler for thedescribe
operation should be registered.protected abstract void
initializeLegacyParsers(ExtensionParsingContext context)
Perform the work that a non-legacy extension would perform ininitializeParsers(org.jboss.as.controller.parsing.ExtensionParsingContext)
.void
initializeParsers(ExtensionParsingContext context)
Initialize the XML parsers for this extension and register them with the givenExtensionParsingContext
.
-
-
-
Method Detail
-
initialize
public void initialize(ExtensionContext context)
Description copied from interface:Extension
Initialize this extension by registering its operation handlers and configuration marshaller with the givenExtensionContext
.When this method is invoked the
thread context classloader
will be set to be the defining class loader of the class that implements this interface.- Specified by:
initialize
in interfaceExtension
- Parameters:
context
- the extension context
-
initializeParsers
public void initializeParsers(ExtensionParsingContext context)
Description copied from interface:Extension
Initialize the XML parsers for this extension and register them with the givenExtensionParsingContext
.When this method is invoked the
thread context classloader
will be set to be the defining class loader of the class that implements this interface.- Specified by:
initializeParsers
in interfaceExtension
- Parameters:
context
- the extension parsing context
-
initializeLegacyModel
protected abstract Set<ManagementResourceRegistration> initializeLegacyModel(ExtensionContext context)
Perform the work that a non-legacy extension would perform ininitialize(org.jboss.as.controller.ExtensionContext)
, except no handler for thedescribe
operation should be registered.- Parameters:
context
- the extension context- Returns:
- set containing the root
ManagementResourceRegistration
for all subsystems that were registered. The calling method will register adescribe
operation handler for each of these
-
initializeLegacyParsers
protected abstract void initializeLegacyParsers(ExtensionParsingContext context)
Perform the work that a non-legacy extension would perform ininitializeParsers(org.jboss.as.controller.parsing.ExtensionParsingContext)
.- Parameters:
context
- the extension parsing context
-
-