org.globus.ws.enumeration
Class TransientEnumResource
java.lang.Object
org.globus.ws.enumeration.EnumResource
org.globus.ws.enumeration.TransientEnumResource
- All Implemented Interfaces:
- PersistenceCallback, RemoveCallback, Resource, ResourceIdentifier, ResourceLifetime
public class TransientEnumResource
- extends EnumResource
Represents a transient enumeration context (a context that only exists while
the container is running).
This implementation extends the persistent enumeration resource
implementation with disabled
load() and
store() methods.
|
Field Summary |
private static java.util.Hashtable |
resources
|
|
Method Summary |
void |
load(ResourceKey key)
Loads the resource state. |
void |
remove()
Notifies that the resource was removed. |
void |
store()
Saves the resource state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resources
private static java.util.Hashtable resources
TransientEnumResource
public TransientEnumResource(EnumIterator iter,
VisibilityProperties visibility)
load
public void load(ResourceKey key)
throws ResourceException
- Description copied from interface:
PersistenceCallback
- Loads the resource state.
- Specified by:
load in interface PersistenceCallback- Overrides:
load in class EnumResource
- Throws:
NoSuchResourceException - if no resource state exists for the
specified key.
InvalidResourceKeyException - if the resource key is invalid.
ResourceException - if the load operation fails for any other
reason.
store
public void store()
throws ResourceException
- Description copied from interface:
PersistenceCallback
- Saves the resource state.
- Specified by:
store in interface PersistenceCallback- Overrides:
store in class EnumResource
- Throws:
ResourceException - if the store operation fails.
remove
public void remove()
throws ResourceException
- Description copied from interface:
RemoveCallback
- Notifies that the resource was removed. This function must not be
called directly on the resource object. Only
ResourceHome.remove() is
allowed to call that method during the remove operation.
- Specified by:
remove in interface RemoveCallback- Overrides:
remove in class EnumResource
- Throws:
ResourceException - if the remove operation fails.