public class FactoryTransformer extends java.lang.Object implements Transformer, java.io.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.
|
java.lang.Object |
transform(java.lang.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
transformerjava.lang.IllegalArgumentException
- if the factory is nullpublic java.lang.Object transform(java.lang.Object input)
transform
in interface Transformer
input
- the input object to transformpublic Factory getFactory()
Copyright © 2010 - 2020 Adobe. All Rights Reserved