public class SecurityRealmChildWriteAttributeHandler extends RestartParentWriteAttributeHandler
AbstractWriteAttributeHandler.HandbackHolder<T>| Constructor and Description |
|---|
SecurityRealmChildWriteAttributeHandler(AttributeDefinition... attributes) |
| Modifier and Type | Method and Description |
|---|---|
protected org.jboss.msc.service.ServiceName |
getParentServiceName(PathAddress parentAddress) |
protected boolean |
isResourceServiceRestartAllowed(OperationContext context,
org.jboss.msc.service.ServiceController<?> service)
Gets whether a restart of the parent resource's services is allowed.
|
protected void |
recreateParentService(OperationContext context,
PathAddress parentAddress,
org.jboss.dmr.ModelNode parentModel,
ServiceVerificationHandler verificationHandler) |
protected void |
removeServices(OperationContext context,
org.jboss.msc.service.ServiceName parentService,
org.jboss.dmr.ModelNode parentModel)
Removes services.
|
protected boolean |
requiresRuntime(OperationContext context)
Gets whether a
OperationContext.Stage.RUNTIME handler should be added. |
applyUpdateToRuntime, getParentAddress, revertUpdateToRuntimeexecute, getAttributeDefinition, validateResolvedValue, validateUnresolvedValuepublic SecurityRealmChildWriteAttributeHandler(AttributeDefinition... attributes)
protected boolean requiresRuntime(OperationContext context)
AbstractWriteAttributeHandlerOperationContext.Stage.RUNTIME handler should be added.requiresRuntime in class AbstractWriteAttributeHandler<org.jboss.dmr.ModelNode>context - operation contexttrue if a runtime stage handler should be added; false otherwise.protected boolean isResourceServiceRestartAllowed(OperationContext context, org.jboss.msc.service.ServiceController<?> service)
RestartParentWriteAttributeHandlerthe context allows resource service restarts;
subclasses could also check the state of the service.isResourceServiceRestartAllowed in class RestartParentWriteAttributeHandlercontext - the operation contextservice - the parent servicetrue if a restart is allowed; falseprotected void removeServices(OperationContext context, org.jboss.msc.service.ServiceName parentService, org.jboss.dmr.ModelNode parentModel) throws OperationFailedException
RestartParentWriteAttributeHandlerinstructs the context to remove the parentService.
Subclasses could use the provided parentModel to identify and remove other services.removeServices in class RestartParentWriteAttributeHandlercontext - the operation contextparentService - the name of the parent serviceparentModel - the model associated with the parent resource, including nodes for any child resourcesOperationFailedException - if there is a problem removing the servicesprotected void recreateParentService(OperationContext context, PathAddress parentAddress, org.jboss.dmr.ModelNode parentModel, ServiceVerificationHandler verificationHandler) throws OperationFailedException
recreateParentService in class RestartParentWriteAttributeHandlerOperationFailedExceptionprotected org.jboss.msc.service.ServiceName getParentServiceName(PathAddress parentAddress)
getParentServiceName in class RestartParentWriteAttributeHandlerCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.