Class PathAddHandler
- java.lang.Object
-
- org.jboss.as.controller.services.path.PathAddHandler
-
- All Implemented Interfaces:
OperationStepHandler
public class PathAddHandler extends Object implements OperationStepHandler
Handler for the path resource add operation.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static String
OPERATION_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protected
PathAddHandler(PathManagerService pathManager, boolean services, SimpleAttributeDefinition pathAttribute)
Deprecated.not for use outside the kernel; may be removed at any time
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(OperationContext context, org.jboss.dmr.ModelNode operation)
{@inheritDocstatic org.jboss.dmr.ModelNode
getAddPathOperation(PathAddress address, org.jboss.dmr.ModelNode path, org.jboss.dmr.ModelNode relativeTo)
-
-
-
Field Detail
-
OPERATION_NAME
public static final String OPERATION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PathAddHandler
@Deprecated protected PathAddHandler(PathManagerService pathManager, boolean services, SimpleAttributeDefinition pathAttribute)
Deprecated.not for use outside the kernel; may be removed at any timeCreate the PathAddHandler- Parameters:
pathManager
- the path manager, ornull
if interaction with the path manager is not required for the resourceservices
-true
if interaction with the path manager is required for the resourcepathAttribute
- the definition of the attribute to use to represent the portion of the path specification that identifies the absolute path or portion of the path that is relative to the 'relative-to' path. Cannot benull
-
-
Method Detail
-
getAddPathOperation
public static org.jboss.dmr.ModelNode getAddPathOperation(PathAddress address, org.jboss.dmr.ModelNode path, org.jboss.dmr.ModelNode relativeTo)
-
execute
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
{@inheritDoc- Specified by:
execute
in interfaceOperationStepHandler
- Parameters:
context
- the operation contextoperation
- the operation being executed- Throws:
OperationFailedException
- if the operation failed before callingcontext.completeStep()
-
-