public abstract class CdiRepositoryBean<T> extends ObjectSE implements javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.PassivationCapable
Bean
ラッパーの基本クラス。コンストラクターと説明 |
---|
CdiRepositoryBean(SetSE<AnnotationSE> qualifiers, ClassSE<T> repositoryType, javax.enterprise.inject.spi.BeanManager beanManager) 新しい CdiRepositoryBean を作成します。 |
CdiRepositoryBean(SetSE<AnnotationSE> qualifiers, ClassSE<T> repositoryType, javax.enterprise.inject.spi.BeanManager beanManager, CdiRepositoryContext context) 新しい CdiRepositoryBean を作成します。 |
CdiRepositoryBean(SetSE<AnnotationSE> qualifiers, ClassSE<T> repositoryType, javax.enterprise.inject.spi.BeanManager beanManager, OptionalSE<CustomRepositoryImplementationDetector> detector) 新しい CdiRepositoryBean を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected void | applyConfiguration(RepositoryFactorySupport repositoryFactory) 実際の構成を検索して、 CdiRepositoryConfiguration から RepositoryFactorySupport に構成を適用します。 |
protected static void | applyConfiguration(RepositoryFactorySupport repositoryFactory, CdiRepositoryConfiguration configuration) 実際の構成を検索して、 CdiRepositoryConfiguration から RepositoryFactorySupport に構成を適用します。 |
T | create(javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
protected T | create(javax.enterprise.context.spi.CreationalContext<T> creationalContext, ClassSE<T> repositoryType) 実際のコンポーネントインスタンスを作成します。 |
protected T | create(javax.enterprise.context.spi.CreationalContext<T> creationalContext, ClassSE<T> repositoryType, OptionalSE<ObjectSE> customImplementation) 使用すべきではありません。 2.1 以降、リポジトリファクトリを作成して #create(RepositoryFactorySupport, Class, RepositoryFragments) を呼び出す create(CreationalContext, Class) をオーバーライドします。 |
protected static <T> T | create(RepositoryFactorySupport repositoryFactory, ClassSE<T> repositoryType, RepositoryComposition.RepositoryFragments repositoryFragments) 実際のリポジトリインスタンスを作成します。 |
protected T | create(SupplierSE<? extends RepositoryFactorySupport> factorySupplier, ClassSE<T> repositoryType) repository factory supplier およびリポジトリ type SE を指定して、実際のコンポーネントインスタンスを作成します。 |
void | destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
ClassSE<?> | getBeanClass() |
protected <S> S | getDependencyInstance(javax.enterprise.inject.spi.Bean<S> bean) 指定された Bean のインスタンスを返します。 |
protected <S> S | getDependencyInstance(javax.enterprise.inject.spi.Bean<S> bean, ClassSE<?> type) 指定された Bean のインスタンスを返し、これから作成される型について特定できるようにします。 |
StringSE | getId() |
SetSE<javax.enterprise.inject.spi.InjectionPoint> | getInjectionPoints() |
StringSE | getName() |
SetSE<AnnotationSE> | getQualifiers() |
protected RepositoryComposition.RepositoryFragments | getRepositoryFragments(ClassSE<T> repositoryType) repository interface SE のリポジトリフラグメントを検索します。 |
ClassSE<? extends AnnotationSE> | getScope() |
SetSE<ClassSE<? extends AnnotationSE>> | getStereotypes() |
SetSE<TypeSE> | getTypes() |
void | initialize() Bean ターゲットの初期化を強制します。 |
boolean | isAlternative() |
boolean | isNullable() |
protected CdiRepositoryConfiguration | lookupConfiguration(javax.enterprise.inject.spi.BeanManager beanManager, SetSE<AnnotationSE> qualifiers) CdiRepositoryConfiguration のインスタンスを検索します。 |
StringSE | toString() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public CdiRepositoryBean(SetSE<AnnotationSE> qualifiers, ClassSE<T> repositoryType, javax.enterprise.inject.spi.BeanManager beanManager)
CdiRepositoryBean
を作成します。qualifiers
- null であってはなりません。repositoryType
- インターフェースでなければならない null であってはなりません。beanManager
- CDI BeanManager
、null であってはなりません。public CdiRepositoryBean(SetSE<AnnotationSE> qualifiers, ClassSE<T> repositoryType, javax.enterprise.inject.spi.BeanManager beanManager, OptionalSE<CustomRepositoryImplementationDetector> detector)
CdiRepositoryBean
を作成します。qualifiers
- null であってはなりません。repositoryType
- インターフェースでなければならない null であってはなりません。beanManager
- CDI BeanManager
、null であってはなりません。detector
- カスタムリポジトリ実装 CustomRepositoryImplementationDetector
のディテクター。public CdiRepositoryBean(SetSE<AnnotationSE> qualifiers, ClassSE<T> repositoryType, javax.enterprise.inject.spi.BeanManager beanManager, CdiRepositoryContext context)
CdiRepositoryBean
を作成します。qualifiers
- null であってはなりません。repositoryType
- インターフェースでなければならない null であってはなりません。beanManager
- CDI BeanManager
、null であってはなりません。context
- クラスローダー、メタデータスキャン、フラグメント検出をカプセル化する CDI コンテキスト。public SetSE<TypeSE> getTypes()
javax.enterprise.inject.spi.Bean<T>
の getTypes
protected <S> S getDependencyInstance(javax.enterprise.inject.spi.Bean<S> bean)
Bean
のインスタンスを返します。bean
- インスタンスを作成しようとしている Bean
Bean.getTypes()
protected <S> S getDependencyInstance(javax.enterprise.inject.spi.Bean<S> bean, ClassSE<?> type)
Bean
のインスタンスを返し、これから作成される型について特定できるようにします。bean
- インスタンスを作成しようとしている Bean
type
- その Bean
に対して作成されたコンポーネントインスタンスの予想される型。Bean
は複数の型を運ぶ可能性がありますが、プライマリ型が最初ではない可能性があるため、このパラメーターを明示的に渡す必要があります。つまり、Bean.getBeanClass()
によって返された型です。Bean.getTypes()
public final void initialize()
public final T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
javax.enterprise.context.spi.Contextual<T>
の create
public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
javax.enterprise.context.spi.Contextual<T>
の destroy
public SetSE<AnnotationSE> getQualifiers()
javax.enterprise.inject.spi.Bean<T>
の getQualifiers
public SetSE<ClassSE<? extends AnnotationSE>> getStereotypes()
javax.enterprise.inject.spi.Bean<T>
の getStereotypes
public ClassSE<?> getBeanClass()
javax.enterprise.inject.spi.Bean<T>
の getBeanClass
public boolean isAlternative()
javax.enterprise.inject.spi.Bean<T>
の isAlternative
public boolean isNullable()
javax.enterprise.inject.spi.Bean<T>
の isNullable
public SetSE<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
javax.enterprise.inject.spi.Bean<T>
の getInjectionPoints
public ClassSE<? extends AnnotationSE> getScope()
javax.enterprise.inject.spi.Bean<T>
の getScope
public StringSE getId()
javax.enterprise.inject.spi.PassivationCapable
の getId
protected T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext, ClassSE<T> repositoryType)
creationalContext
- null になることはありません。repositoryType
- null になることはありません。protected T create(SupplierSE<? extends RepositoryFactorySupport> factorySupplier, ClassSE<T> repositoryType)
repository factory supplier
およびリポジトリ type
SE を指定して、実際のコンポーネントインスタンスを作成します。このメソッドは、リポジトリを作成するためのユーティリティです。このメソッドは repository factory
を取得し、CdiRepositoryConfiguration
で構成します。factorySupplier
- null であってはなりません。repositoryType
- null であってはなりません。protected RepositoryComposition.RepositoryFragments getRepositoryFragments(ClassSE<T> repositoryType)
repository interface
SE のリポジトリフラグメントを検索します。repositoryType
- null であってはなりません。RepositoryComposition.RepositoryFragments
@DeprecatedSE protected T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext, ClassSE<T> repositoryType, OptionalSE<ObjectSE> customImplementation)
#create(RepositoryFactorySupport, Class, RepositoryFragments)
を呼び出す create(CreationalContext, Class)
をオーバーライドします。creationalContext
- null になることはありません。repositoryType
- null になることはありません。customImplementation
- null でもかまいません。protected CdiRepositoryConfiguration lookupConfiguration(javax.enterprise.inject.spi.BeanManager beanManager, SetSE<AnnotationSE> qualifiers)
CdiRepositoryConfiguration
のインスタンスを検索します。CDI スコープ内でインスタンスが見つからない場合、デフォルトの構成が使用されます。protected void applyConfiguration(RepositoryFactorySupport repositoryFactory)
CdiRepositoryConfiguration
から RepositoryFactorySupport
に構成を適用します。repositoryFactory
- null になることはありません。protected static void applyConfiguration(RepositoryFactorySupport repositoryFactory, CdiRepositoryConfiguration configuration)
CdiRepositoryConfiguration
から RepositoryFactorySupport
に構成を適用します。repositoryFactory
- null になることはありません。configuration
- null になることはありません。protected static <T> T create(RepositoryFactorySupport repositoryFactory, ClassSE<T> repositoryType, RepositoryComposition.RepositoryFragments repositoryFragments)
repositoryType
- null になることはありません。repositoryFragments
- null になることはありません。public StringSE toString()
ObjectSE
の toStringSE
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.