org.apache.commons.collections.functors
Class FactoryTransformer
java.lang.Objectorg.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: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
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-2008 Apache Software Foundation. All Rights Reserved.