public class CloneTransformer extends java.lang.Object implements Transformer, java.io.Serializable
Clone is performed using PrototypeFactory.getInstance(input).create()
.
WARNING: from v3.2.2 onwards this class will throw an
UnsupportedOperationException
when trying to serialize or
de-serialize an instance to prevent potential remote code execution exploits.
In order to re-enable serialization support for CloneTransformer
the following system property can be used (via -Dproperty=true):
org.apache.commons.collections.enableUnsafeSerialization
Modifier and Type | Field and Description |
---|---|
static Transformer |
INSTANCE
Singleton predicate instance
|
Modifier and Type | Method and Description |
---|---|
static Transformer |
getInstance()
Factory returning the singleton instance.
|
java.lang.Object |
transform(java.lang.Object input)
Transforms the input to result by cloning it.
|
public static final Transformer INSTANCE
public static Transformer getInstance()
public java.lang.Object transform(java.lang.Object input)
transform
in interface Transformer
input
- the input object to transform"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"