public enum Instantiations extends Enum<Instantiations>
The use of
SINGLETON is highly recommended.
SINGLETON marshallers are more priority than others.
|Enum Constant and Description|
One instance of marshaller is created for each marshalling request.
One instance of the marshaller is created per thread.
The marshaller is instantiated once.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final Instantiations SINGLETON
Each class with this instantiation mode should just have thread safe properties, or injected properties.
Please note that injected
RenderingContext is thread safe.
public static final Instantiations PER_THREAD
public static final Instantiations EACH_TIME
public static Instantiations values()
for (Instantiations c : Instantiations.values()) System.out.println(c);
public static Instantiations valueOf(String name)
name- the name of the enum constant to be returned.
IllegalArgumentException- if this enum type has no constant with the specified name
NullPointerException- if the argument is null
Copyright © 2016 Nuxeo SA. All rights reserved.