Class OperationDefinitionHelper
java.lang.Object
org.wildfly.extension.messaging.activemq.OperationDefinitionHelper
Helper class to define operations.
- Author:
- Jeff Mesnil (c) 2014 Red Hat inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jboss.as.controller.AttributeDefinitioncreateNonEmptyStringAttribute(String attributeName) static StringresolveFilter(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) static org.jboss.as.controller.SimpleOperationDefinitionBuilderruntimeOnlyOperation(String operationName, org.jboss.as.controller.descriptions.ResourceDescriptionResolver resolver) Create aSimpleOperationDefinitionBuilderfor the given operationName and flag it as runtime only.static org.jboss.as.controller.SimpleOperationDefinitionBuilderruntimeReadOnlyOperation(String operationName, org.jboss.as.controller.descriptions.ResourceDescriptionResolver resolver) Create aSimpleOperationDefinitionBuilderfor the given operationName and flag it as read only and runtime only.
-
Constructor Details
-
OperationDefinitionHelper
public OperationDefinitionHelper()
-
-
Method Details
-
createNonEmptyStringAttribute
public static org.jboss.as.controller.AttributeDefinition createNonEmptyStringAttribute(String attributeName) -
runtimeReadOnlyOperation
public static org.jboss.as.controller.SimpleOperationDefinitionBuilder runtimeReadOnlyOperation(String operationName, org.jboss.as.controller.descriptions.ResourceDescriptionResolver resolver) Create aSimpleOperationDefinitionBuilderfor the given operationName and flag it as read only and runtime only. -
runtimeOnlyOperation
public static org.jboss.as.controller.SimpleOperationDefinitionBuilder runtimeOnlyOperation(String operationName, org.jboss.as.controller.descriptions.ResourceDescriptionResolver resolver) Create aSimpleOperationDefinitionBuilderfor the given operationName and flag it as runtime only. -
resolveFilter
public static String resolveFilter(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) throws org.jboss.as.controller.OperationFailedException - Throws:
org.jboss.as.controller.OperationFailedException
-