public class RestartParentResourceWriteAttributeHandler<T> extends org.jboss.as.controller.RestartParentWriteAttributeHandler implements Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>
RestartParentWriteAttributeHandler
that leverages a ResourceServiceBuilderFactory
for service recreation.Constructor and Description |
---|
RestartParentResourceWriteAttributeHandler(ResourceServiceBuilderFactory<T> parentFactory,
WriteAttributeStepHandlerDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
protected void |
finishModelStage(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode oldValue,
org.jboss.as.controller.registry.Resource model) |
protected org.jboss.as.controller.PathAddress |
getParentAddress(org.jboss.as.controller.PathAddress address) |
protected org.jboss.msc.service.ServiceName |
getParentServiceName(org.jboss.as.controller.PathAddress parentAddress) |
protected void |
recreateParentService(org.jboss.as.controller.OperationContext context,
org.jboss.as.controller.PathAddress parentAddress,
org.jboss.dmr.ModelNode parentModel) |
void |
register(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
Registers this object with a resource.
|
applyUpdateToRuntime, isResourceServiceRestartAllowed, recreateParentService, removeServices, revertUpdateToRuntime
public RestartParentResourceWriteAttributeHandler(ResourceServiceBuilderFactory<T> parentFactory, WriteAttributeStepHandlerDescriptor descriptor)
protected void recreateParentService(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress parentAddress, org.jboss.dmr.ModelNode parentModel) throws org.jboss.as.controller.OperationFailedException
recreateParentService
in class org.jboss.as.controller.RestartParentWriteAttributeHandler
org.jboss.as.controller.OperationFailedException
protected org.jboss.msc.service.ServiceName getParentServiceName(org.jboss.as.controller.PathAddress parentAddress)
getParentServiceName
in class org.jboss.as.controller.RestartParentWriteAttributeHandler
protected org.jboss.as.controller.PathAddress getParentAddress(org.jboss.as.controller.PathAddress address)
getParentAddress
in class org.jboss.as.controller.RestartParentWriteAttributeHandler
public void register(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
Registration
register
in interface Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>
registration
- a registration for a management resourceprotected void finishModelStage(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode oldValue, org.jboss.as.controller.registry.Resource model) throws org.jboss.as.controller.OperationFailedException
finishModelStage
in class org.jboss.as.controller.AbstractWriteAttributeHandler<org.jboss.dmr.ModelNode>
org.jboss.as.controller.OperationFailedException
Copyright © 2017 JBoss by Red Hat. All rights reserved.