Class AbstractLegacyExtension
java.lang.Object
org.jboss.as.controller.extension.AbstractLegacyExtension
Abstract superclass for
Extension 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
ConstructorsModifierConstructorDescriptionprotectedAbstractLegacyExtension(String extensionName, String... subsystemNames) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(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 thedescribeoperation should be registered.protected abstract voidPerform the work that a non-legacy extension would perform ininitializeParsers(org.jboss.as.controller.parsing.ExtensionParsingContext).voidinitializeParsers(ExtensionParsingContext context) Initialize the XML parsers for this extension and register them with the givenExtensionParsingContext.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.controller.Feature
getStability
-
Constructor Details
-
AbstractLegacyExtension
-
-
Method Details
-
initialize
Description copied from interface:ExtensionInitialize this extension by registering its operation handlers and configuration marshaller with the givenExtensionContext.When this method is invoked the
thread context classloaderwill be set to be the defining class loader of the class that implements this interface.- Specified by:
initializein interfaceExtension- Parameters:
context- the extension context
-
initializeParsers
Description copied from interface:ExtensionInitialize the XML parsers for this extension and register them with the givenExtensionParsingContext.When this method is invoked the
thread context classloaderwill be set to be the defining class loader of the class that implements this interface.- Specified by:
initializeParsersin 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 thedescribeoperation should be registered.- Parameters:
context- the extension context- Returns:
- set containing the root
ManagementResourceRegistrationfor all subsystems that were registered. The calling method will register adescribeoperation handler for each of these
-
initializeLegacyParsers
Perform the work that a non-legacy extension would perform ininitializeParsers(org.jboss.as.controller.parsing.ExtensionParsingContext).- Parameters:
context- the extension parsing context
-