org.d_haven.mpool
public interface ObjectFactory
Version: CVS $Revision: 1.4 $ $Date: 2004/06/21 17:03:46 $
Method Summary | |
---|---|
void | dispose(Object object)
Performs any deconstruction that is necessary for the object.
|
Class | getCreatedClass()
Get the class of the object you are creating.
|
Object | newInstance()
Create a new instance of the object being pooled.
|
Parameters: object to destroy
Throws: IllegalArgumentException if the object is not of the same class that the factory creates. Exception if there is any other reason that the factory has problems disposing of the object.
Returns: Class object of the factory's class
Returns: the pooled Object instance
Throws: Exception if the object cannot be instantiated