Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/IManagedObject.java')
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/IManagedObject.java27
1 files changed, 16 insertions, 11 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/IManagedObject.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/IManagedObject.java
index b4e7e7542..2c43679c9 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/IManagedObject.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/IManagedObject.java
@@ -14,30 +14,35 @@ package org.eclipse.jst.jsf.common.internal.managedobject;
* Represents an object that wishes to be managed by the framework.
*
* Clients should not implement: sub-class AbstractManagedObject instead.
- *
+ *
*/
-public interface IManagedObject
+public interface IManagedObject
{
/**
- * Called by the object client to indicate is finished with the object.
- * The object should save any data it may want between sessions, perhaps
- * by calling its checkpoint, before cleaning held resources and clearing
+ * Called by the object client to indicate is finished with the object. The
+ * object should save any data it may want between sessions, perhaps by
+ * calling its checkpoint, before cleaning held resources and clearing
* memory references.
*/
void dispose();
-
+
+ /**
+ * @return true if dispose has been successfully called on the object.
+ */
+ boolean isDisposed();
+
/**
* Called to indicate that the object should remove all its data from both
- * memory and persistent storage. This differentiates it from dispose in
+ * memory and persistent storage. This differentiates it from dispose in
* that it signals that this object and its associated state will never
* again be loaded for associated objects.
*/
void destroy();
-
+
/**
- * Indicates that an object should flush cached data and make durable
- * any data it might want between sessions. It does not indicate a
- * disposal of the object.
+ * Indicates that an object should flush cached data and make durable any
+ * data it might want between sessions. It does not indicate a disposal of
+ * the object.
*/
void checkpoint();
}

Back to the top