Class ContextualSubsystemRegistration
- java.lang.Object
-
- org.jboss.as.clustering.controller.DecoratingSubsystemRegistration<ManagementResourceRegistration>
-
- org.jboss.as.clustering.controller.ContextualSubsystemRegistration
-
- All Implemented Interfaces:
RegistrationContext,SubsystemRegistration,org.jboss.as.controller.SubsystemRegistration
public class ContextualSubsystemRegistration extends DecoratingSubsystemRegistration<ManagementResourceRegistration> implements SubsystemRegistration
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ContextualSubsystemRegistration(org.jboss.as.controller.SubsystemRegistration registration, RegistrationContext context)ContextualSubsystemRegistration(org.jboss.as.controller.SubsystemRegistration registration, org.jboss.as.controller.ExtensionContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<org.jboss.as.controller.services.path.PathManager>getPathManager()Returns the optionalPathManagerof the process that is only present if the process is aserver.booleanisRuntimeOnlyRegistrationValid()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.-
Methods inherited from class org.jboss.as.clustering.controller.DecoratingSubsystemRegistration
getSubsystemVersion, registerDeploymentModel, registerModelTransformers, registerModelTransformers, registerModelTransformers, registerModelTransformers, registerSubsystemModel, registerXMLElementWriter, setHostCapable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.clustering.controller.SubsystemRegistration
registerDeploymentModel, registerSubsystemModel
-
-
-
-
Constructor Detail
-
ContextualSubsystemRegistration
public ContextualSubsystemRegistration(org.jboss.as.controller.SubsystemRegistration registration, org.jboss.as.controller.ExtensionContext context)
-
ContextualSubsystemRegistration
public ContextualSubsystemRegistration(org.jboss.as.controller.SubsystemRegistration registration, RegistrationContext context)
-
-
Method Detail
-
isRuntimeOnlyRegistrationValid
public boolean isRuntimeOnlyRegistrationValid()
Description copied from interface:RegistrationContextGets 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. Extensions should use this method before registering such "runtime only" resources, attributes or operations. This method is intended to avoid registering resources, attributes or operations on process types that can not install runtime services.- Specified by:
isRuntimeOnlyRegistrationValidin interfaceRegistrationContext- Returns:
- whether it is valid to register runtime resources, attributes, or operations.
- See Also:
ExtensionContext.isRuntimeOnlyRegistrationValid()
-
getPathManager
public Optional<org.jboss.as.controller.services.path.PathManager> getPathManager()
Description copied from interface:RegistrationContextReturns the optionalPathManagerof the process that is only present if the process is aserver.- Specified by:
getPathManagerin interfaceRegistrationContext- Returns:
- an optional PathManager.
- See Also:
ExtensionContext.getPathManager()
-
-