org.apache.commons.collections4.functors
Class PrototypeFactory

java.lang.Object
  extended by org.apache.commons.collections4.functors.PrototypeFactory

public class PrototypeFactory
extends Object

Factory implementation that creates a new instance each time based on a prototype.

Since:
3.0
Version:
$Id: PrototypeFactory.java 1477798 2013-04-30 19:49:02Z tn $

Method Summary
static
<T> Factory<T>
prototypeFactory(T 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

prototypeFactory

public static <T> Factory<T> prototypeFactory(T 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. The prototype will be cloned using one of these techniques (in order):



Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.