public class InjectionPoint extends ObjectSE
UnsatisfiedDependencyException
によって公開されます。ファクトリメソッドの引数としても利用でき、カスタマイズされた Bean インスタンスを構築するためのリクエストインジェクションポイントに反応します。UnsatisfiedDependencyException.getInjectionPoint()
, DependencyDescriptor
修飾子と型 | フィールドと説明 |
---|---|
protected FieldSE | field |
protected MethodParameter | methodParameter |
修飾子 | コンストラクターと説明 |
---|---|
protected | InjectionPoint() サブクラスでの直列化の目的でのみ使用できます。 |
| InjectionPoint(FieldSE field) フィールドのインジェクションポイント記述子を作成します。 |
protected | InjectionPoint(InjectionPoint original) コピーコンストラクター。 |
| InjectionPoint(MethodParameter methodParameter) メソッドまたはコンストラクターパラメーターのインジェクションポイント記述子を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(ObjectSE other) |
AnnotatedElementSE | getAnnotatedElement() ラップされたアノテーション付き要素を返します。 |
<A extends AnnotationSE> | getAnnotation(ClassSE<A> annotationType) 指定された型のフィールド / パラメーターアノテーションがあれば、それを取得します。 |
AnnotationSE[] | getAnnotations() ラップされたフィールドまたはメソッド / コンストラクターパラメーターに関連付けられたアノテーションを取得します。 |
ClassSE<?> | getDeclaredType() 基になるフィールドまたはメソッド / コンストラクターパラメーターによって宣言された型を返し、注入の型を示します。 |
FieldSE | getField() ラップされたフィールドがあれば返します。 |
MemberSE | getMember() インジェクションポイントを含む、ラップされたメンバーを返します。 |
MethodParameter | getMethodParameter() ラップされた MethodParameter があれば、それを返します。 |
int | hashCode() |
protected MethodParameter | obtainMethodParameter() 存在する場合、ラップされた MethodParameter を返します。 |
StringSE | toString() |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
@Nullable protected MethodParameter methodParameter
public InjectionPoint(MethodParameter methodParameter)
methodParameter
- ラップする MethodParameterpublic InjectionPoint(FieldSE field)
field
- ラップするフィールド protected InjectionPoint(InjectionPoint original)
original
- コピーを作成する元の記述子 protected InjectionPoint()
@Nullable public MethodParameter getMethodParameter()
メモ: MethodParameter またはフィールドのいずれかを使用できます。
null
@Nullable public FieldSE getField()
メモ: MethodParameter またはフィールドのいずれかを使用できます。
null
protected final MethodParameter obtainMethodParameter()
null
)IllegalStateExceptionSE
- MethodParameter が利用できない場合 public AnnotationSE[] getAnnotations()
@Nullable public <A extends AnnotationSE> A getAnnotation(ClassSE<A> annotationType)
annotationType
- 取得するアノテーション型 null
public ClassSE<?> getDeclaredType()
public MemberSE getMember()
public AnnotatedElementSE getAnnotatedElement()
メモ: メソッド / コンストラクターパラメーターの場合、これはメソッドまたはコンストラクター自体で宣言されたアノテーションを公開します(つまり、パラメーターレベルではなく、メソッド / コンストラクターレベルで)。getAnnotations()
を使用して、このようなシナリオでパラメーターレベルのアノテーションを取得し、対応するフィールドのアノテーションを透過的に使用します。
public int hashCode()
ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE