Interface RuntimeOperation<C>
-
- Type Parameters:
C- operation context
public interface RuntimeOperation<C>Defines the behavior of a runtime operation.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.jboss.dmr.ModelNodeexecute(ExpressionResolver resolver, org.jboss.dmr.ModelNode operation, C context)Execute against the specified context.default StringgetName()Convenience method that return the name of this runtime operation.OperationDefinitiongetOperationDefinition()Returns the operation definition for this runtime operation.
-
-
-
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 resolveroperation- original operation model to resolve parameters fromcontext- an execution context- Returns:
- the execution result (possibly null).
- Throws:
OperationFailedException
-
-