Interface RegistrationContext
-
- All Known Subinterfaces:
ManagementResourceRegistration,SubsystemRegistration
- All Known Implementing Classes:
ContextualResourceRegistration,ContextualSubsystemRegistration,ExtensionRegistrationContext
public interface RegistrationContextContext used for conditional registration.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean isRuntimeOnlyRegistrationValid()
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. 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.- Returns:
- whether it is valid to register runtime resources, attributes, or operations.
- See Also:
ExtensionContext.isRuntimeOnlyRegistrationValid()
-
getPathManager
Optional<org.jboss.as.controller.services.path.PathManager> getPathManager()
Returns the optionalPathManagerof the process that is only present if the process is aserver.- Returns:
- an optional PathManager.
- See Also:
ExtensionContext.getPathManager()
-
-