|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.config.ResourceState<T>
public class ResourceState<T extends Resource>
Encapsulates information on the state of a managed Resource
(and provides access to it).
Nested Class Summary | |
---|---|
static class |
ResourceState.StateType
Represents the lifecycle phases of a Resource . |
Constructor Summary | |
---|---|
ResourceState(String id,
File configLocation,
ResourceProvider provider,
ResourceState.StateType type,
T resource,
ResourceInitException lastException)
Creates a new ResourceState instance. |
Method Summary | |
---|---|
File |
getConfigLocation()
|
String |
getId()
Returns an identifier that uniquely identifies the resource among all resources that are managed by the corresponding ResourceManager . |
ResourceInitException |
getLastException()
Returns the exception that occurred during the last state change of the resource. |
ResourceProvider |
getProvider()
Returns the ResourceProvider responsible for this resource. |
T |
getResource()
Returns the actual resource. |
ResourceState.StateType |
getType()
Returns the state type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceState(String id, File configLocation, ResourceProvider provider, ResourceState.StateType type, T resource, ResourceInitException lastException)
ResourceState
instance.
id
- resource identifier, never null
configLocation
- config file location, can be null
type
- state type, must not be null
resource
- actual resource object, can be null
lastException
- exception that occurred during the last state change of the resource, can be null
(no
exception)Method Detail |
---|
public String getId()
ResourceManager
.
null
public File getConfigLocation()
public ResourceProvider getProvider()
ResourceProvider
responsible for this resource.
null
(no suitable resource provider available)public ResourceState.StateType getType()
null
public T getResource()
null
public ResourceInitException getLastException()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |