public class PrototypeFactory extends java.lang.Object
WARNING: from v4.1 onwards
Factory instances returned by
prototypeFactory(Object) will not be serializable anymore in order
to prevent potential remote code execution exploits. Please refer to
for more details.
|Modifier and Type||Method and Description|
Factory method that performs validation.
public static <T> Factory<T> prototypeFactory(T prototype)
Creates a Factory that will return a clone of the same prototype object each time the factory is used. The prototype will be cloned using one of these techniques (in order):
T- the type the factory creates
prototype- the object to clone each time in the factory
prototypefactory, or a
java.lang.IllegalArgumentException- if the prototype cannot be cloned
Copyright © 2010 - 2020 Adobe. All Rights Reserved