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 |
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 null
IllegalStateException
- if there is no path registered under relativeTo
PathEntry getPathEntry(String name)
name
- the name of the pathIllegalStateException
- if there is no path registered under path
PathManager.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 © 2023 JBoss by Red Hat. All rights reserved.