| java.lang.Object org.apache.commons.collections.functors.FactoryTransformer
FactoryTransformer | public class FactoryTransformer implements Transformer,Serializable(Code) | | Transformer implementation that calls a Factory and returns the result.
since: Commons Collections 3.0 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Stephen Colebourne |
FactoryTransformer | public FactoryTransformer(Factory factory)(Code) | | Constructor that performs no validation.
Use getInstance if you want that.
Parameters: factory - the factory to call, not null |
getFactory | public Factory getFactory()(Code) | | Gets the factory.
the factory since: Commons Collections 3.1 |
getInstance | public static Transformer getInstance(Factory factory)(Code) | | Factory method that performs validation.
Parameters: factory - the factory to call, not null the factory transformer throws: IllegalArgumentException - if the factory is null |
transform | public Object transform(Object input)(Code) | | Transforms the input by ignoring the input and returning the result of
calling the decorated factory.
Parameters: input - the input object to transform the transformed result |
|
|