public enum Instantiations extends Enum<Instantiations>
The use of SINGLETON
is highly recommended.
SINGLETON
marshallers are more priority than others.
Enum Constant and Description |
---|
EACH_TIME
One instance of marshaller is created for each marshalling request.
|
PER_THREAD
One instance of the marshaller is created per thread.
|
SINGLETON
The marshaller is instantiated once.
|
Modifier and Type | Method and Description |
---|---|
static Instantiations |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Instantiations[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 nameNullPointerException
- if the argument is nullCopyright © 2017 Nuxeo. All rights reserved.