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/AbstractManagedObject.java')
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/AbstractManagedObject.java77
1 files changed, 0 insertions, 77 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/AbstractManagedObject.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/AbstractManagedObject.java
deleted file mode 100644
index 9138f0e35..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/managedobject/AbstractManagedObject.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.common.internal.managedobject;
-
-import java.util.concurrent.atomic.AtomicBoolean;
-
-
-/**
- * Sub-class for managed objects.
- *
- */
-/**
- * @author cbateman
- *
- */
-public abstract class AbstractManagedObject implements IManagedObject
-{
- /**
- * Flag for checking disposal.
- */
- protected final AtomicBoolean _isDisposed = new AtomicBoolean(false);
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.jst.jsf.common.internal.managedobject.IManagedObject#dispose
- * ()
- */
- public void dispose()
- {
- _isDisposed.set(true);
- }
-
- public boolean isDisposed()
- {
- return _isDisposed.get();
- }
-
- /**
- * Checks if this object is disposed and throws IllegalStateException if it
- * is.
- */
- protected final void assertNotDisposed()
- {
- if (isDisposed())
- {
- throw new IllegalStateException(this.toString() + " is disposed"); //$NON-NLS-1$
- }
- }
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.jst.jsf.common.internal.managedobject.IManagedObject#checkpoint
- * ()
- */
- public abstract void checkpoint();
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.jst.jsf.common.internal.managedobject.IManagedObject#destroy
- * ()
- */
- public abstract void destroy();
-
-}

Back to the top