public class DiscoveryWriteAttributeHandler extends ReloadRequiredWriteAttributeHandler
AbstractWriteAttributeHandler.HandbackHolder<T>
Constructor and Description |
---|
DiscoveryWriteAttributeHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
requiresRuntime(OperationContext context)
Gets whether a
OperationContext.Stage.RUNTIME handler should be added. |
applyUpdateToRuntime, revertUpdateToRuntime
execute, finishModelStage, getAttributeDefinition, recordCapabilitiesAndRequirements, validateUpdatedModel
protected boolean requiresRuntime(OperationContext context)
AbstractWriteAttributeHandler
OperationContext.Stage.RUNTIME
handler should be added. This default implementation
returns true if the process is a normal server
and the process
is not booting
. The rationale for the latter check is if the process is
booting, the resource being modified will have been added as a previous step in the same context, and
the Stage.RUNTIME handling for that add will see a model the reflects the changes made by this handler and
will apply them to the runtime.requiresRuntime
in class AbstractWriteAttributeHandler<Void>
context
- operation contexttrue
if a runtime stage handler should be added; false
otherwise.Copyright © 2023 JBoss by Red Hat. All rights reserved.