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:
ManagementRegistrar<org.jboss.as.controller.registry.ManagementResourceRegistration>,org.jboss.as.controller.OperationStepHandler
public class WriteAttributeStepHandler
extends org.jboss.as.controller.ReloadRequiredWriteAttributeHandler
implements ManagementRegistrar<org.jboss.as.controller.registry.ManagementResourceRegistration>
Convenience extension of
ReloadRequiredWriteAttributeHandler that can be initialized with an Attribute set.- 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> -
Field Summary
Fields inherited from class org.jboss.as.controller.ReloadRequiredWriteAttributeHandler
INSTANCE -
Constructor Summary
ConstructorsConstructorDescriptionWriteAttributeStepHandler(WriteAttributeStepHandlerDescriptor descriptor, ResourceServiceHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler
execute, finishModelStage, getAttributeDefinition, requiresRuntime, validateUpdatedModel
-
Constructor Details
-
WriteAttributeStepHandler
-
WriteAttributeStepHandler
public WriteAttributeStepHandler(WriteAttributeStepHandlerDescriptor descriptor, ResourceServiceHandler handler)
-
-
Method Details
-
register
public void register(org.jboss.as.controller.registry.ManagementResourceRegistration registration) Description copied from interface:ManagementRegistrarRegisters this object with a resource.- Specified by:
registerin interfaceManagementRegistrar<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
-