org.apache.commons.collections.functors

Class PrototypeFactory

public class PrototypeFactory extends Object

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

Since: Commons Collections 3.0

Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $

Author: Stephen Colebourne

Method Summary
static FactorygetInstance(Object prototype)
Factory method that performs validation.

Method Detail

getInstance

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

Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.