Class WriteAttributeStepHandler
- java.lang.Object
-
- org.jboss.as.controller.AbstractWriteAttributeHandler<Void>
-
- org.jboss.as.controller.ReloadRequiredWriteAttributeHandler
-
- org.jboss.as.clustering.controller.WriteAttributeStepHandler
-
- All Implemented Interfaces:
Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>,org.jboss.as.controller.OperationStepHandler
public class WriteAttributeStepHandler extends org.jboss.as.controller.ReloadRequiredWriteAttributeHandler implements Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>
Convenience extension ofReloadRequiredWriteAttributeHandlerthat can be initialized with anAttributeset.- Author:
- Paul Ferraro
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler
org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description WriteAttributeStepHandler(WriteAttributeStepHandlerDescriptor descriptor)WriteAttributeStepHandler(WriteAttributeStepHandlerDescriptor descriptor, ResourceServiceHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanapplyUpdateToRuntime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue, org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<Void> handback)protected voidrecordCapabilitiesAndRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.AttributeDefinition attribute, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode oldValue)voidregister(org.jboss.as.controller.registry.ManagementResourceRegistration registration)Registers this object with a resource.protected voidrevertUpdateToRuntime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode resolvedValue, Void handback)
-
-
-
Constructor Detail
-
WriteAttributeStepHandler
public WriteAttributeStepHandler(WriteAttributeStepHandlerDescriptor descriptor)
-
WriteAttributeStepHandler
public WriteAttributeStepHandler(WriteAttributeStepHandlerDescriptor descriptor, ResourceServiceHandler handler)
-
-
Method Detail
-
register
public void register(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
Description copied from interface:RegistrationRegisters this object with a resource.- Specified by:
registerin interfaceRegistration<org.jboss.as.controller.registry.ManagementResourceRegistration>- Parameters:
registration- a registration for a management resource
-
recordCapabilitiesAndRequirements
protected void recordCapabilitiesAndRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.AttributeDefinition attribute, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode oldValue)- Overrides:
recordCapabilitiesAndRequirementsin classorg.jboss.as.controller.AbstractWriteAttributeHandler<Void>
-
applyUpdateToRuntime
protected boolean applyUpdateToRuntime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue, org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<Void> handback) throws org.jboss.as.controller.OperationFailedException- Overrides:
applyUpdateToRuntimein classorg.jboss.as.controller.ReloadRequiredWriteAttributeHandler- Throws:
org.jboss.as.controller.OperationFailedException
-
revertUpdateToRuntime
protected void revertUpdateToRuntime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode resolvedValue, Void handback) throws org.jboss.as.controller.OperationFailedException- Overrides:
revertUpdateToRuntimein classorg.jboss.as.controller.ReloadRequiredWriteAttributeHandler- Throws:
org.jboss.as.controller.OperationFailedException
-
-