public class FactoryTransformer extends Object implements Transformer, Serializable
| Constructor and Description |
|---|
FactoryTransformer(Factory factory)
Constructor that performs no validation.
|
| Modifier and Type | Method and Description |
|---|---|
Factory |
getFactory()
Gets the factory.
|
static Transformer |
getInstance(Factory factory)
Factory method that performs validation.
|
Object |
transform(Object input)
Transforms the input by ignoring the input and returning the result of
calling the decorated factory.
|
public FactoryTransformer(Factory factory)
getInstance if you want that.factory - the factory to call, not nullpublic static Transformer getInstance(Factory factory)
factory - the factory to call, not nullfactory transformerIllegalArgumentException - if the factory is nullpublic Object transform(Object input)
transform in interface Transformerinput - the input object to transformpublic Factory getFactory()
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.