org.jplate.foundation.gof.factory.impl
Class AbstractContextFactory<V,C>
java.lang.Object
org.jplate.foundation.gof.factory.impl.AbstractContextFactory<V,C>
- Type Parameters:
V
- The type of object to be created or destroyed.C
- The context in which V
will be created. Consider this
akin to a param or data needed in order to successfully create an
object.
- All Implemented Interfaces:
- java.io.Serializable, ContextFactoryIfc<V,C>
- Direct Known Subclasses:
- DefaultAttributeFactory
public abstract class AbstractContextFactory<V,C>
- extends java.lang.Object
- implements ContextFactoryIfc<V,C>
Abstract implementation of a
ContextFactoryIfc
. In many instances,
the destroy(V)
method is not required and is therefore being implemented
here. The implementation does nothing.
Modifications:
$Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
$Revision: 479 $
$Author: sfloess $
$HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/gof/factory/impl/AbstractContextFactory.java $
- See Also:
- Serialized Form
Field Summary |
private org.apache.commons.logging.Log |
_log
Used for logging. |
Method Summary |
void |
destroy(V object)
Destroys (or cleans up) object created by self. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_log
private final transient org.apache.commons.logging.Log _log
- Used for logging.
AbstractContextFactory
protected AbstractContextFactory()
- Default constructor.
destroy
public void destroy(V object)
- Destroys (or cleans up)
object
created by self.
- Specified by:
destroy
in interface ContextFactoryIfc<V,C>
- Parameters:
object
- The object to destroy/clean-up.