Class ResolvePathHandler.Builder
java.lang.Object
org.jboss.as.controller.services.path.ResolvePathHandler.Builder
- Enclosing class:
- ResolvePathHandler
Build an operation to resolve the
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the resolve path handler.static ResolvePathHandler.Builderof(String operationName, PathManager pathManager) Deprecated.static ResolvePathHandler.Builderof(PathManager pathManager) Creates a builder with the default operation name ofresolve-path.setCheckAbsolutePath(boolean checkAbsolutePath) Sets whether the path is absolute and should ignore the relative-to value.setDeprecated(ModelVersion since) setParentAttribute(AttributeDefinition parentAttribute) Sets the parent attribute that therelative-toandpathattributes are children of.setPathAttribute(AttributeDefinition pathAttribute) Sets thepathattribute.setRelativeToAttribute(AttributeDefinition relativeToAttribute) Sets therelative-toattribute.
-
Method Details
-
of
Creates a builder with the default operation name ofresolve-path.- Parameters:
pathManager- the path manager used to resolve the path- Returns:
- the operation handler builder
-
of
@Deprecated(forRemoval=false) public static ResolvePathHandler.Builder of(String operationName, PathManager pathManager) Deprecated.Creates a builder with the default operation name of defined in theoperationNameparameter. While this seems odd to add a deprecated method from the start, the transaction extension requires a separate operation as there are two relative paths. Other extensions should not use this method and if the transaction subsystem changes to use a proper resource for theobject-store, this method should be removed.- Parameters:
operationName- the name of the operation to registerpathManager- the path manager used to resolve the path- Returns:
- the operation handler builder
-
build
Builds the resolve path handler.- Returns:
- the operation step handler
-
setParentAttribute
Sets the parent attribute that therelative-toandpathattributes are children of. A value ofnullindicates they are a direct decedent of the resource.- Parameters:
parentAttribute- the parent attribute- Returns:
- the builder
-
setRelativeToAttribute
Sets therelative-toattribute. The default value isPathResourceDefinition.RELATIVE_TO.- Parameters:
relativeToAttribute- the relative to attribute- Returns:
- the builder
-
setPathAttribute
Sets thepathattribute. The default value isPathResourceDefinition.PATH.- Parameters:
pathAttribute- the path to attribute- Returns:
- the builder
-
setDeprecated
-
setCheckAbsolutePath
Sets whether the path is absolute and should ignore the relative-to value.- Parameters:
checkAbsolutePath- {code true} if an absolute path should ignore the relative-to value- Returns:
- the builder
-