| org.cougaar.core.persist.ActivePersistenceObject
All known Subclasses: org.cougaar.planning.ldm.plan.MPTaskImpl, org.cougaar.planning.ldm.plan.PlanElementImpl,
ActivePersistenceObject | public interface ActivePersistenceObject (Code) | | An object that requires special persistence and rehydration
handling.
This is typically used as a hack for odd blackboard objects that
can't [de]serialize correctly, or unusual domains. AVOID
this interface unless you absolutely must use it!
|
Method Summary | |
void | checkRehydration(Logger logger) Validate an object that has just been persistence
deserialized.
This occurs prior to the "postRehydration" validation,
but is very similar. | void | postRehydration(Logger logger) Fix an object once rehydration has completed. | boolean | skipUnpublishedPersist(Logger logger) Confirm that this object, not published to the blackboard
but reachable from a blackboard object, should be
persisted.
For example, if object X has a pointer to object Y,
and only X is on the blackboard, then Y is "weakly reachable".
If Y implements the ActivePersistenceObject interface, Y will be
asked to confirm if Y should be persisted.
The default for objects that don't implement the
ActivePersistenceObject interface is "false" (ie. |
checkRehydration | void checkRehydration(Logger logger)(Code) | | Validate an object that has just been persistence
deserialized.
This occurs prior to the "postRehydration" validation,
but is very similar. The difference is that this
check is done as the objects are being deserialized,
instead of after all of them have been deserialized.
|
postRehydration | void postRehydration(Logger logger)(Code) | | Fix an object once rehydration has completed.
This is used as a last-minute cleanup, in case the
object requires special deserialization work.
|
skipUnpublishedPersist | boolean skipUnpublishedPersist(Logger logger)(Code) | | Confirm that this object, not published to the blackboard
but reachable from a blackboard object, should be
persisted.
For example, if object X has a pointer to object Y,
and only X is on the blackboard, then Y is "weakly reachable".
If Y implements the ActivePersistenceObject interface, Y will be
asked to confirm if Y should be persisted.
The default for objects that don't implement the
ActivePersistenceObject interface is "false" (ie. persist
all reachable objects).
true if this object should not be persisted |
|
|