org.apache.commons.collections.functors
Class FactoryTransformer
java.lang.Object
org.apache.commons.collections.functors.FactoryTransformer
- Serializable, Transformer
public class FactoryTransformer
extends java.lang.Object
Transformer implementation that calls a Factory and returns the result.
$Revision: 1.6 $ $Date: 2004/05/16 11:36:31 $
FactoryTransformer
public FactoryTransformer(Factory factory)
Constructor that performs no validation.
Use getInstance
if you want that.
factory
- the factory to call, not null
getFactory
public Factory getFactory()
Gets the factory.
getInstance
public static Transformer getInstance(Factory factory)
Factory method that performs validation.
factory
- the factory to call, not null
transform
public Object transform(Object input)
Transforms the input by ignoring the input and returning the result of
calling the decorated factory.
- transform in interface Transformer
input
- the input object to transform
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.