org.apache.commons.collections.functors
public class PrototypeFactory extends Object
public static Factory getInstance(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 factoryprototype
factoryIllegalArgumentException
- if the prototype is nullIllegalArgumentException
- if the prototype cannot be clonedCopyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.