Class RelativePathService
- java.lang.Object
-
- org.jboss.as.controller.services.path.AbstractPathService
-
- org.jboss.as.controller.services.path.RelativePathService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<String>,org.jboss.msc.value.Value<String>
public class RelativePathService extends AbstractPathService
AbstractPathServiceimplementation for paths that are relative to other paths.- Author:
- Brian Stansberry, Richard Opalka
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.msc.service.ServiceController<?>addService(String name, String relativePath, String relativeTo, org.jboss.msc.service.ServiceTarget serviceTarget)static org.jboss.msc.service.ServiceController<?>addService(org.jboss.msc.service.ServiceName name, String path, boolean possiblyAbsolute, String relativeTo, org.jboss.msc.service.ServiceTarget serviceTarget)Installs a path service.static org.jboss.msc.service.ServiceController<?>addService(org.jboss.msc.service.ServiceName name, String relativePath, String relativeTo, org.jboss.msc.service.ServiceTarget serviceTarget)static voidaddService(org.jboss.msc.service.ServiceName name, org.jboss.dmr.ModelNode element, org.jboss.msc.service.ServiceTarget serviceTarget)protected StringresolvePath()-
Methods inherited from class org.jboss.as.controller.services.path.AbstractPathService
getValue, isAbsoluteUnixOrWindowsPath, pathNameOf, start, stop
-
-
-
-
Method Detail
-
addService
public static org.jboss.msc.service.ServiceController<?> addService(String name, String relativePath, String relativeTo, org.jboss.msc.service.ServiceTarget serviceTarget)
-
addService
public static org.jboss.msc.service.ServiceController<?> addService(org.jboss.msc.service.ServiceName name, String relativePath, String relativeTo, org.jboss.msc.service.ServiceTarget serviceTarget)
-
addService
public static org.jboss.msc.service.ServiceController<?> addService(org.jboss.msc.service.ServiceName name, String path, boolean possiblyAbsolute, String relativeTo, org.jboss.msc.service.ServiceTarget serviceTarget)Installs a path service.- Parameters:
name- the name to use for the servicepath- the relative portion of the pathpossiblyAbsolute-trueifpathmay be anabsolute pathand should beinstalled as suchif it is, with anyrelativeToparameter ignoredrelativeTo- the name of the path thatpathmay be relative toserviceTarget- theServiceTargetto use to install the service- Returns:
- the ServiceController for the path service
-
addService
public static void addService(org.jboss.msc.service.ServiceName name, org.jboss.dmr.ModelNode element, org.jboss.msc.service.ServiceTarget serviceTarget)
-
resolvePath
protected String resolvePath()
- Specified by:
resolvePathin classAbstractPathService
-
-