ReflectionEntityInstantiator
instead.public enum ReflectionEntityInstantiator extends Enum<ReflectionEntityInstantiator> implements EntityInstantiator
EntityInstantiator
that uses the PersistentEntity
's PreferredConstructor
to instantiate an
instance of the entity via reflection.Enum Constant and Description |
---|
INSTANCE
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> |
createInstance(E entity,
ParameterValueProvider<P> provider)
Deprecated.
Creates a new instance of the given entity using the given source to pull data from.
|
static ReflectionEntityInstantiator |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ReflectionEntityInstantiator[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReflectionEntityInstantiator INSTANCE
public static ReflectionEntityInstantiator[] values()
for (ReflectionEntityInstantiator c : ReflectionEntityInstantiator.values()) System.out.println(c);
public static ReflectionEntityInstantiator 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 nullpublic <T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> T createInstance(E entity, ParameterValueProvider<P> provider)
EntityInstantiator
createInstance
in interface EntityInstantiator
entity
- will not be null.provider
- will not be null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.