T
- Bean インスタンスのクラス public interface BeanConfigurator<T>
Bean
インスタンスを構成するためのヘルパーです。CDI コンテナーは、このインターフェースの実装を提供する必要があります。このビルダーはスレッドセーフではなく、同時に使用できません。AfterBeanDiscovery.addBean()
修飾子と型 | メソッドと説明 |
---|---|
BeanConfigurator<T> | addInjectionPoint(InjectionPoint injectionPoint) 構成済みの Bean に InjectionPoint を追加する |
BeanConfigurator<T> | addInjectionPoints(InjectionPoint... injectionPoints) 構成済みの Bean に InjectionPoints を追加する |
BeanConfigurator<T> | addInjectionPoints(SetSE<InjectionPoint> injectionPoints) 構成済みの Bean に InjectionPoints を追加する |
BeanConfigurator<T> | addQualifier(AnnotationSE qualifier) 構成済みの Bean に修飾子を追加します |
BeanConfigurator<T> | addQualifiers(AnnotationSE... qualifiers) Bean に修飾子を追加します。 |
BeanConfigurator<T> | addQualifiers(SetSE<AnnotationSE> qualifiers) Bean に修飾子を追加します。 |
BeanConfigurator<T> | addStereotype(ClassSE<? extends AnnotationSE> stereotype) 構成済みの Bean にステレオタイプを追加する |
BeanConfigurator<T> | addStereotypes(SetSE<ClassSE<? extends AnnotationSE>> stereotypes) 構成済みの Bean にステレオタイプを追加する |
BeanConfigurator<T> | addTransitiveTypeClosure(TypeSE type) マネージド Bean の Bean クラスを表すかのように、指定された型の無制限の Bean 型のセットを追加します。 |
BeanConfigurator<T> | addType(TypeSE type) Bean 型に型を追加する |
BeanConfigurator<T> | addType(TypeLiteral<?> typeLiteral) Bean 型に型を追加する |
BeanConfigurator<T> | addTypes(SetSE<TypeSE> types) Bean 型に型を追加する |
BeanConfigurator<T> | addTypes(TypeSE... types) Bean 型に型を追加する |
BeanConfigurator<T> | alternative(boolean value) 設定された Bean の代替ステータスを変更します。 |
BeanConfigurator<T> | beanClass(ClassSE<?> beanClass) 構成済みの Bean のクラスを設定します。 |
<U extends T> | createWith(FunctionSE<CreationalContext<U>,U> callback) Bean インスタンスを作成するためのコールバックを設定します。 |
BeanConfigurator<T> | destroyWith(BiConsumerSE<T, CreationalContext<T>> callback) Bean インスタンスを破棄するコールバックを設定します。 |
BeanConfigurator<T> | disposeWith(BiConsumerSE<T, Instance<ObjectSE>> callback) Bean インスタンスを破棄するコールバックを設定します。 |
BeanConfigurator<T> | id(StringSE id) 構成済みの Bean に PassivationCapable とそのパッシベーション用の ID を実装させます。 |
BeanConfigurator<T> | injectionPoints(InjectionPoint... injectionPoints) 構成済みの Bean の InjectionPoints を置き換えます |
BeanConfigurator<T> | injectionPoints(SetSE<InjectionPoint> injectionPoints) 構成済みの Bean の InjectionPoints を置き換えます |
BeanConfigurator<T> | name(StringSE name) 構成された Bean の名前を設定します |
<U extends T> | produceWith(FunctionSE<Instance<ObjectSE>,U> callback) Bean インスタンスを作成するためのコールバックを設定します。 |
BeanConfigurator<T> | qualifiers(AnnotationSE... qualifiers) すべての修飾子を置き換えます。 |
BeanConfigurator<T> | qualifiers(SetSE<AnnotationSE> qualifiers) すべての修飾子を置き換えます。 |
<U extends T> | read(AnnotatedType<U> type) 指定されたアノテーション付きの型から情報を読み取ります。 |
BeanConfigurator<T> | read(BeanAttributes<?> beanAttributes) 指定された Bean 属性から情報を読み取ります。 |
BeanConfigurator<T> | scope(ClassSE<? extends AnnotationSE> scope) Bean スコープを置き換える |
BeanConfigurator<T> | stereotypes(SetSE<ClassSE<? extends AnnotationSE>> stereotypes) 構成済みの Bean のステレオタイプを置き換える |
BeanConfigurator<T> | types(SetSE<TypeSE> types) Bean 型を置き換える |
BeanConfigurator<T> | types(TypeSE... types) Bean 型を置き換える |
BeanConfigurator<T> beanClass(ClassSE<?> beanClass)
beanClass
- 構成された Bean のクラス BeanConfigurator<T> addInjectionPoint(InjectionPoint injectionPoint)
injectionPoint
- 追加するインジェクションポイント BeanConfigurator<T> addInjectionPoints(InjectionPoint... injectionPoints)
injectionPoints
- 追加するインジェクションポイント BeanConfigurator<T> addInjectionPoints(SetSE<InjectionPoint> injectionPoints)
injectionPoints
- 追加するインジェクションポイント BeanConfigurator<T> injectionPoints(InjectionPoint... injectionPoints)
injectionPoints
- 構成された Bean のインジェクションポイント BeanConfigurator<T> injectionPoints(SetSE<InjectionPoint> injectionPoints)
injectionPoints
- 構成された Bean のインジェクションポイント BeanConfigurator<T> id(StringSE id)
PassivationCapable
とそのパッシベーション用の ID を実装させます。id
- forPassivationCapable.getId()
<U extends T> BeanConfigurator<U> createWith(FunctionSE<CreationalContext<U>,U> callback)
U
- インスタンスタイプ callback
- インスタンスを作成するためのコールバック Contextual.create(CreationalContext)
<U extends T> BeanConfigurator<U> produceWith(FunctionSE<Instance<ObjectSE>,U> callback)
Instance
引数は、プロデューサーメソッドのパラメーターインジェクションをシミュレートするために使用できます。ただし、コールバックの実行中に Instance
から取得された依存スコープ Bean インスタンスは、生成された Bean インスタンスが破棄されるまで管理されたままです。アプリケーションでは、Instance
から取得した不要な依存スコープ Bean インスタンスを常に破棄することをお勧めします。
U
- インスタンスタイプ callback
- インスタンスを作成するためのコールバック BeanConfigurator<T> destroyWith(BiConsumerSE<T,CreationalContext<T>> callback)
destroy コールバックが指定されていない場合、NOOP コールバックが自動的に設定されます。
callback
- インスタンスを破棄するためのコールバック BeanConfigurator<T> disposeWith(BiConsumerSE<T,Instance<ObjectSE>> callback)
破棄コールバックが指定されていない場合、NOOP コールバックが自動的に設定されます。
Instance
引数は、ディスポーザメソッドのパラメーターインジェクションをシミュレートするために使用できます。コールバックの実行中に Instance
から取得されたすべての依存スコープの Bean インスタンスは、実行が完了すると破棄されます。
callback
- インスタンスを破棄するためのコールバック <U extends T> BeanConfigurator<U> read(AnnotatedType<U> type)
U
- インスタンスタイプ type
- 情報を読み取るクラス BeanConfigurator<T> read(BeanAttributes<?> beanAttributes)
beanAttributes
- 情報を読み取る beanAttributesBeanConfigurator<T> addType(TypeSE type)
type
- 追加する型 BeanConfigurator<T> addType(TypeLiteral<?> typeLiteral)
typeLiteral
- 追加する型 BeanConfigurator<T> addTypes(TypeSE... types)
types
- 追加する型 BeanConfigurator<T> addTypes(SetSE<TypeSE> types)
types
- 追加する型 BeanConfigurator<T> addTransitiveTypeClosure(TypeSE type)
type
- からクロージャーを構築する BeanConfigurator<T> types(TypeSE... types)
types
- 構成された Bean の型 BeanConfigurator<T> types(SetSE<TypeSE> types)
types
- 構成された Bean の型 BeanConfigurator<T> scope(ClassSE<? extends AnnotationSE> scope)
scope
- 構成された Bean の新しいスコープ BeanConfigurator<T> addQualifier(AnnotationSE qualifier)
qualifier
- 追加する修飾子 BeanConfigurator<T> addQualifiers(AnnotationSE... qualifiers)
qualifiers
- 追加する修飾子 BeanConfigurator<T> addQualifiers(SetSE<AnnotationSE> qualifiers)
qualifiers
- 追加する修飾子 BeanConfigurator<T> qualifiers(AnnotationSE... qualifiers)
qualifiers
- ビルド Bean の修飾子 BeanConfigurator<T> qualifiers(SetSE<AnnotationSE> qualifiers)
qualifiers
- 構成済み Bean の場合 BeanConfigurator<T> addStereotype(ClassSE<? extends AnnotationSE> stereotype)
stereotype
- 追加するステレオタイプ BeanConfigurator<T> addStereotypes(SetSE<ClassSE<? extends AnnotationSE>> stereotypes)
stereotypes
- 追加するステレオタイプ BeanConfigurator<T> stereotypes(SetSE<ClassSE<? extends AnnotationSE>> stereotypes)
stereotypes
- 構成済み Bean の場合 BeanConfigurator<T> name(StringSE name)
name
- 構成された Bean の名前 BeanConfigurator<T> alternative(boolean value)
value
- 代替プロパティの値 Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.