public class ClassGeneratingEntityInstantiator extends ObjectSE implements EntityInstantiator
EntityInstantiator。PersistentEntity の PreferredConstructor を使用して、ASM を介した適切なコンストラクター呼び出しでファクトリメソッドを動的に生成することにより、エンティティのインスタンスをインスタンス化します。型のバイトコードを生成できない場合は、ReflectionEntityInstantiator に適切にフォールバックします。| 修飾子と型 | クラスと説明 |
|---|---|
static interface | ClassGeneratingEntityInstantiator.ObjectInstantiator それ以外の場合、生成された実装クラスはクラスローダーからのインターフェースを参照しないため、パブリックである必要があります。 |
| コンストラクターと説明 |
|---|
ClassGeneratingEntityInstantiator() 新しい ClassGeneratingEntityInstantiator を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> | createInstance(E entity, ParameterValueProvider<P> provider) 指定されたソースを使用してデータをプルすることにより、指定されたエンティティの新しいインスタンスを作成します。 |
protected EntityInstantiator | doCreateEntityInstantiator(PersistentEntity<?,?> entity) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic ClassGeneratingEntityInstantiator()
ClassGeneratingEntityInstantiator を作成します。public <T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> T createInstance(E entity, ParameterValueProvider<P> provider)
EntityInstantiatorEntityInstantiator 内の createInstance entity - null にはなりません。provider - null にはなりません。protected EntityInstantiator doCreateEntityInstantiator(PersistentEntity<?,?> entity)
entity -Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.