Class ExtensionRegistrationContext
- java.lang.Object
-
- org.jboss.as.clustering.controller.ExtensionRegistrationContext
-
- All Implemented Interfaces:
RegistrationContext
public class ExtensionRegistrationContext extends Object implements RegistrationContext
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ExtensionRegistrationContext(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.
-
-
-
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()
-
-