public class FactoryTransformer extends java.lang.Object implements Transformer, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private Factory |
iFactory
The factory to wrap
|
private static long |
serialVersionUID
Serial version UID
|
| 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.
|
java.lang.Object |
transform(java.lang.Object input)
Transforms the input by ignoring the input and returning the result of
calling the decorated factory.
|
private static final long serialVersionUID
private final Factory iFactory
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 transformerjava.lang.IllegalArgumentException - if the factory is nullpublic java.lang.Object transform(java.lang.Object input)
transform in interface Transformerinput - the input object to transformpublic Factory getFactory()