com.kedwards.swt.persist
Class ActivationPersistifier

java.lang.Object
  |
  +--com.kedwards.swt.persist.FSPersistifier
        |
        +--com.kedwards.swt.persist.ActivationPersistifier
All Implemented Interfaces:
Persistifier

public class ActivationPersistifier
extends FSPersistifier

ActivationPersistifier.java The state of activatable services gets passed to them in a MarshalledObject; in the SWT, this MarshalledObject contains a java.io.File which the service will use to write its state. For the most part, FSPersistifier is sufficient for this. But when the storage location is changed, the persistifier must be smart enough to push out the new MarshalledObject data to the activation subsystem. See http://www.kedwards.com/jini

No warranty expressed or implied; use at your own risk; for educational purposes only.

Author:
Keith Edwards

Constructor Summary
ActivationPersistifier(java.rmi.activation.ActivationID activationID, java.lang.String loc)
           
 
Method Summary
 void setStorageLocation(java.lang.String newLoc)
          Change the "location" of storage.
 
Methods inherited from class com.kedwards.swt.persist.FSPersistifier
checkpoint, delete, getStorageLocation, restorable, restore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationPersistifier

public ActivationPersistifier(java.rmi.activation.ActivationID activationID,
                              java.lang.String loc)
                       throws java.io.IOException
Method Detail

setStorageLocation

public void setStorageLocation(java.lang.String newLoc)
                        throws java.io.IOException
Description copied from interface: Persistifier
Change the "location" of storage.
Overrides:
setStorageLocation in class FSPersistifier