ReflectionEntityInstantiator
を使用してください。public enum ReflectionEntityInstantiator extends EnumSE<ReflectionEntityInstantiator> implements EntityInstantiator
PersistentEntity
の PreferredConstructor
を使用して、リフレクションを介してエンティティのインスタンスをインスタンス化する EntityInstantiator
。列挙型定数と説明 |
---|
INSTANCE 使用すべきではありません。 |
修飾子と型 | メソッドと説明 |
---|---|
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> | createInstance(E entity, ParameterValueProvider<P> provider) 使用すべきではありません。 指定されたソースを使用してデータをプルすることにより、指定されたエンティティの新しいインスタンスを作成します。 |
static ReflectionEntityInstantiator | valueOf(StringSE name) 使用すべきではありません。 指定された名前を持つこの型の列挙定数を返します。 |
static ReflectionEntityInstantiator[] | values() 使用すべきではありません。 この列挙型の定数を含む配列を、宣言されている順序で返します。 |
cloneSE, compareToSE, equalsSE, finalizeSE, getDeclaringClassSE, hashCodeSE, nameSE, ordinalSE, toStringSE, valueOfSE
getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public static final ReflectionEntityInstantiator INSTANCE
public static ReflectionEntityInstantiator[] values()
for (ReflectionEntityInstantiator c : ReflectionEntityInstantiator.values()) System.out.println(c);
public static ReflectionEntityInstantiator valueOf(StringSE name)
name
- 返される列挙定数の名前。IllegalArgumentExceptionSE
- この列挙型に指定された名前の定数がない場合 NullPointerExceptionSE
- 引数が null の場合 public <T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> T createInstance(E entity, ParameterValueProvider<P> provider)
EntityInstantiator
EntityInstantiator
の createInstance
entity
- null にはなりません。provider
- null にはなりません。Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.