T
- インターセプター Bean クラス public interface Interceptor<T> extends Bean<T>
有効なインターセプターを表します。
CDI 2.0 以降、このインターフェースの実装は Prioritized
を実装して、アプリケーション全体でインターセプターに特定の優先度値を設定できるようにする場合があります。
修飾子と型 | メソッドと説明 |
---|---|
SetSE<AnnotationSE> | getInterceptorBindings() インターセプターのインターセプターバインディングを取得します。 |
ObjectSE | intercept(InterceptionType type, T instance, InvocationContext ctx) 指定されたインターセプターインスタンスで、指定された種類のライフサイクルコールバックまたはメソッド呼び出しインターセプトを呼び出します。 |
boolean | intercepts(InterceptionType type) インターセプターが指定された種類のライフサイクルコールバックまたはメソッド呼び出しをインターセプトするかどうかを決定します。 |
getBeanClass, getInjectionPoints, isNullable
create, destroy
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
SetSE<AnnotationSE> getInterceptorBindings()
インターセプターのインターセプターバインディングを取得します。
boolean intercepts(InterceptionType type)
インターセプターが指定された種類のライフサイクルコールバックまたはメソッド呼び出しをインターセプトするかどうかを決定します。
ObjectSE intercept(InterceptionType type, T instance, InvocationContext ctx) throws ExceptionSE
指定されたインターセプターインスタンスで、指定された種類のライフサイクルコールバックまたはメソッド呼び出しインターセプトを呼び出します。
type
- インターセプトの種類 instance
- 呼び出すインターセプターインスタンス ctx
- 呼び出しのコンテキスト ExceptionSE
- ターゲットメソッドまたはチェーンの以下のインターセプターによってスローされます Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.