public interface ObjectFactory
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(java.lang.Object object)
Performs any deconstruction that is necessary for the object.
|
java.lang.Class |
getCreatedClass()
Get the class of the object you are creating.
|
java.lang.Object |
newInstance()
Create a new instance of the object being pooled.
|
java.lang.Object newInstance()
throws java.lang.Exception
java.lang.Exception - if the object cannot be instantiatedjava.lang.Class getCreatedClass()
void dispose(java.lang.Object object)
throws java.lang.Exception
object - to destroyjava.lang.IllegalArgumentException - if the object is not of the same
class that the factory creates.java.lang.Exception - if there is any other reason
that the factory has problems
disposing of the object.