public abstract class AbstractPathService extends Object implements org.jboss.msc.service.Service<String>
Constructor and Description |
---|
AbstractPathService() |
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
static boolean |
isAbsoluteUnixOrWindowsPath(String path)
Checks whether the given path looks like an absolute Unix or Windows filesystem pathname without
regard for what the filesystem is underlying the Java Virtual Machine.
|
static org.jboss.msc.service.ServiceName |
pathNameOf(String pathName) |
protected abstract String |
resolvePath() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static org.jboss.msc.service.ServiceName pathNameOf(String pathName)
public static boolean isAbsoluteUnixOrWindowsPath(String path)
"/"
. A Microsoft Windows pathname is absolute if its prefix is a drive
specifier followed by "\\"
, or if its prefix is "\\\\"
.
This method differs from simply creating a new File
and calling File.isAbsolute()
in that
its results do not change depending on what the filesystem underlying the Java Virtual Machine is.
path
- the pathtrue
if path
looks like an absolute Unix or Windows pathnamepublic void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<String>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<String>
public String getValue() throws IllegalStateException
getValue
in interface org.jboss.msc.value.Value<String>
IllegalStateException
protected abstract String resolvePath()
Copyright © 2023 JBoss by Red Hat. All rights reserved.