public interface ResourceManager extends Closeable
Modifier and Type | Field and Description |
---|---|
static ResourceManager |
EMPTY_RESOURCE_MANAGER |
Modifier and Type | Method and Description |
---|---|
Resource |
getResource(String path)
Returns a resource for the given path.
|
boolean |
isResourceChangeListenerSupported() |
void |
registerResourceChangeListener(ResourceChangeListener listener)
Registers a resource change listener, if the underlying resource manager support it
|
void |
removeResourceChangeListener(ResourceChangeListener listener)
Removes a resource change listener
|
static final ResourceManager EMPTY_RESOURCE_MANAGER
Resource getResource(String path) throws IOException
path
- The pathIOException
boolean isResourceChangeListenerSupported()
true
if a resource change listener is supportedvoid registerResourceChangeListener(ResourceChangeListener listener)
listener
- The listener to registerIllegalArgumentException
- If resource change listeners are not supportedvoid removeResourceChangeListener(ResourceChangeListener listener)
listener
- Copyright © 2019 JBoss by Red Hat. All rights reserved.