public abstract class PathManagerService extends Object implements PathManager, org.jboss.msc.service.Service<PathManager>
PathManager implementation that exposes additional methods used by the management operation handlers used
for paths, and also exposes the the PathManager as an MSC Service.PathManager.Callback, PathManager.Event, PathManager.PathEventContext, PathManager.ReloadServerCallback| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
PathManagerService() |
| Modifier and Type | Method and Description |
|---|---|
protected org.jboss.msc.service.ServiceController<?> |
addHardcodedAbsolutePath(org.jboss.msc.service.ServiceTarget serviceTarget,
String pathName,
String path)
Add a
PathEntry and install a Service<String> for one of the standard read-only paths
that are determined from this process' environment. |
void |
addPathManagerResources(Resource resource)
Add child resources to the given resource, one for each
PathEntry currently associated with this
path manager. |
PathEntry |
getPathEntry(String pathName)
Gets a path entry
|
PathManagerService |
getValue() |
PathManager.Callback.Handle |
registerCallback(String name,
PathManager.Callback callback,
PathManager.Event... events)
Registers a callback for when a path is added/changed/removed
|
String |
resolveRelativePathEntry(String path,
String relativeTo)
Resolves a relative path
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public final void addPathManagerResources(Resource resource)
PathEntry currently associated with this
path manager. Used to initialize the model with resources for the standard paths that are not part of
the persistent configuration.resource - the resource to which children should be added.public final String resolveRelativePathEntry(String path, String relativeTo)
PathManagerresolveRelativePathEntry in interface PathManagerpath - an absolute path if relativeTo is null, the relative path to relativeTo otherwiserelativeTo - the name of the path this is relative to, may be nullpublic final PathManager.Callback.Handle registerCallback(String name, PathManager.Callback callback, PathManager.Event... events)
PathManagerregisterCallback in interface PathManagername - the name of the pathcallback - the callback instance that will be called when one of the events occurevents - the events we are interested inpublic final void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<PathManager>org.jboss.msc.service.StartExceptionpublic final void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<PathManager>public final PathManagerService getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<PathManager>IllegalStateExceptionIllegalArgumentExceptionprotected final org.jboss.msc.service.ServiceController<?> addHardcodedAbsolutePath(org.jboss.msc.service.ServiceTarget serviceTarget,
String pathName,
String path)
PathEntry and install a Service<String> for one of the standard read-only paths
that are determined from this process' environment. Not to be used for paths stored in the persistent
configuration.serviceTarget - service target to use for the service installationpathName - the logical name of the path within the model. Cannot be nullpath - the value of the path within the model. This is an absolute path. Cannot be nullService<String>public final PathEntry getPathEntry(String pathName)
PathManagergetPathEntry in interface PathManagerpathName - the name of the pathCopyright © 2017 JBoss by Red Hat. All rights reserved.