|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectGenerator
An interface for a simple instance factory. This is used by ObjectRecycler
.
ObjectRecycler
Method Summary | |
---|---|
java.lang.Object |
newObject()
Creates a new instance. |
boolean |
prepareObject(java.lang.Object obj,
java.lang.Object arg)
Prepares the instance for use (reuse) according to the argument passed. |
Method Detail |
---|
java.lang.Object newObject()
boolean prepareObject(java.lang.Object obj, java.lang.Object arg) throws java.lang.IllegalArgumentException
false
.
true
if the preparation succeeded
false
if there is something
wrong with the object passed
java.lang.IllegalArgumentException
- if the argument passed for preparation is inappropriate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |