Interface RuntimeOperation<C>

  • Type Parameters:
    C - operation context

    public interface RuntimeOperation<C>
    Defines the behavior of a runtime operation.
    Author:
    Paul Ferraro
    • Method Detail

      • getOperationDefinition

        OperationDefinition getOperationDefinition()
        Returns the operation definition for this runtime operation.
        Returns:
        an operation definition
      • getName

        default String getName()
        Convenience method that return the name of this runtime operation.
        Returns:
        the operation name
      • execute

        org.jboss.dmr.ModelNode execute​(ExpressionResolver resolver,
                                        org.jboss.dmr.ModelNode operation,
                                        C context)
                                 throws OperationFailedException
        Execute against the specified context.
        Parameters:
        resolver - an expression resolver
        operation - original operation model to resolve parameters from
        context - an execution context
        Returns:
        the execution result (possibly null).
        Throws:
        OperationFailedException