public interface PathManager
PathManagerService| Modifier and Type | Interface and Description |
|---|---|
static interface |
PathManager.Callback
A callback, see
registerCallback(String, Callback, Event...) |
static class |
PathManager.Event
An event triggered when changes are made to a path entry
|
static interface |
PathManager.PathEventContext |
static class |
PathManager.ReloadServerCallback
Factory for a
PathManager.Callback that always calls PathManager.PathEventContext.reloadRequired() from its
Callback#pathModelEvent(PathEventContext, String) method. |
| Modifier and Type | Method and Description |
|---|---|
PathEntry |
getPathEntry(String name)
Gets a path entry
|
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
|
String resolveRelativePathEntry(String path, String relativeTo)
path - an absolute path if relativeTo is null, the relative path to relativeTo otherwiserelativeTo - the name of the path this is relative to, may be nullIllegalStateException - if there is no path registered under relativeToPathEntry getPathEntry(String name)
name - the name of the pathIllegalStateException - if there is no path registered under pathPathManager.Callback.Handle registerCallback(String name, PathManager.Callback callback, PathManager.Event... events)
name - the name of the pathcallback - the callback instance that will be called when one of the events occurevents - the events we are interested inCopyright © 2020 JBoss by Red Hat. All rights reserved.