Class BaseOperationHandler<T>

  • All Implemented Interfaces:
    org.jboss.as.controller.OperationStepHandler

    public abstract class BaseOperationHandler<T>
    extends Object
    implements org.jboss.as.controller.OperationStepHandler
    • Constructor Detail

      • BaseOperationHandler

        protected BaseOperationHandler​(String operationName)
      • BaseOperationHandler

        protected BaseOperationHandler​(String operationName,
                                       boolean changesRuntime)
    • Method Detail

      • register

        public void register​(org.jboss.as.controller.registry.ManagementResourceRegistration subsystem)
      • isChangesRuntimes

        public boolean isChangesRuntimes()
      • execute

        public void execute​(org.jboss.as.controller.OperationContext context,
                            org.jboss.dmr.ModelNode operation)
                     throws org.jboss.as.controller.OperationFailedException
        Specified by:
        execute in interface org.jboss.as.controller.OperationStepHandler
        Throws:
        org.jboss.as.controller.OperationFailedException
      • getService

        protected T getService​(org.jboss.as.controller.OperationContext context,
                               org.jboss.as.controller.PathAddress pathAddress,
                               org.jboss.dmr.ModelNode operation)
                        throws org.jboss.as.controller.OperationFailedException
        Throws:
        org.jboss.as.controller.OperationFailedException
      • getOperationDefinition

        public org.jboss.as.controller.OperationDefinition getOperationDefinition()
      • executeOperation

        protected abstract void executeOperation​(org.jboss.as.controller.OperationContext context,
                                                 T service,
                                                 org.jboss.dmr.ModelNode operation)
                                          throws org.jboss.as.controller.OperationFailedException
        Throws:
        org.jboss.as.controller.OperationFailedException
      • describeParameters

        protected void describeParameters​(org.jboss.as.controller.SimpleOperationDefinitionBuilder builder)