|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.collections.functors.PrototypeFactory
public class PrototypeFactory
Factory implementation that creates a new instance each time based on a prototype.
Method Summary | |
---|---|
static Factory |
getInstance(java.lang.Object prototype)
Factory method that performs validation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Factory getInstance(java.lang.Object prototype)
Creates a Factory that will return a clone of the same prototype object each time the factory is used. The prototype will be cloned using one of these techniques (in order):
prototype
- the object to clone each time in the factory
prototype
factory
java.lang.IllegalArgumentException
- if the prototype is null
java.lang.IllegalArgumentException
- if the prototype cannot be cloned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |