|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 nullconfigLocation - config file location, can be nulltype - state type, must not be nullresource - actual resource object, can be nulllastException - exception that occurred during the last state change of the resource, can be null (no
exception)| Method Detail |
|---|
public String getId()
ResourceManager.
nullpublic File getConfigLocation()
public ResourceProvider getProvider()
ResourceProvider responsible for this resource.
null (no suitable resource provider available)public ResourceState.StateType getType()
nullpublic T getResource()
nullpublic ResourceInitException getLastException()
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||