org.apache.ws.resource
Interface PersistenceCallback

All Known Subinterfaces:
PersistentResource

public interface PersistenceCallback

Defines callback operations for persistence operations. These operations will be invoked when used with org.apache.ws.resource.impl.ResourceHomeImpl. Currently, the ResourceHomeImpl will only invoke the load() function automatically. The resource implementation itself is responsible for calling store() function to synchronize its state on disk.


Method Summary
 void load(ResourceKey key)
          Loads the resource state.
 void store()
          Saves the resource state.
 

Method Detail

load

public void load(ResourceKey key)
          throws ResourceException,
                 ResourceUnknownException,
                 InvalidResourceKeyException
Loads the resource state.

Throws:
ResourceUnknownException - 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
Saves the resource state.

Throws:
ResourceException - if the store operation fails.


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.