| java.lang.Object org.apache.commons.collections.functors.PrototypeFactory
PrototypeFactory | public class PrototypeFactory (Code) | | Factory implementation that creates a new instance each time based on a prototype.
since: Commons Collections 3.0 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Stephen Colebourne |
Method Summary | |
public static Factory | getInstance(Object prototype) Factory method that performs validation.
Creates a Factory that will return a clone of the same prototype object
each time the factory is used. |
getInstance | public static Factory getInstance(Object prototype)(Code) | | Factory method that performs validation.
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):
- public clone method
- public copy constructor
- serialization clone
|
|
|