O - B によって構築されているオブジェクト I - ビルダーの型 B - O をビルドしていて、AnnotationConfigurerAdapter によって構成されているビルダー public abstract class AnnotationConfigurerAdapter<O,I,B extends AnnotationBuilder<O>> extends java.lang.Object implements AnnotationConfigurer<O,B>
AnnotationConfigurer の基本クラス。また、AnnotationConfigurer を使用するメカニズムと、構成されている AnnotationBuilder へのアクセスを取得するメカニズムも提供します。| コンストラクターと説明 |
|---|
AnnotationConfigurerAdapter() |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | addObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor) この AnnotationConfigurerAdapter に使用する ObjectPostProcessor を追加します。 |
I | and()AnnotationConfigurer を使用して完了したら、AnnotationBuilder を返します。 |
void | configure(B builder)AnnotationBuilder に必要なプロパティを設定して、AnnotationBuilder を構成します。 |
protected B | getBuilder()AnnotationBuilder を取得します。 |
void | init(B builder)AnnotationBuilder を初期化します。 |
boolean | isAssignable(AnnotationBuilder<O> builder) |
void | setBuilder(B builder) 使用する AnnotationBuilder を設定します。 |
public void init(B builder) throws java.lang.Exception
AnnotationConfigurerAnnotationBuilder を初期化します。ここでは、共有状態のみを作成および変更する必要がありますが、オブジェクトの構築に使用される AnnotationBuilder のプロパティは変更しないでください。これにより、ビルド時に AnnotationConfigurer.configure(AnnotationBuilder) メソッドが正しい共有オブジェクトを使用することが保証されます。AnnotationConfigurer<O, B extends AnnotationBuilder<O>> 内の init builder - ビルダー java.lang.Exception - エラーが発生した場合 public void configure(B builder) throws java.lang.Exception
AnnotationConfigurerAnnotationBuilder に必要なプロパティを設定して、AnnotationBuilder を構成します。AnnotationConfigurer<O, B extends AnnotationBuilder<O>> 内の configure builder - ビルダー java.lang.Exception - エラーが発生した場合 public I and()
AnnotationConfigurer を使用して完了したら、AnnotationBuilder を返します。これはメソッドの連鎖に役立ちます。protected final B getBuilder()
AnnotationBuilder を取得します。null にすることはできません。AnnotationBuilder が null の場合、このメソッドは IllegalStateException をスローします。public void addObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
AnnotationConfigurerAdapter に使用する ObjectPostProcessor を追加します。デフォルトの実装はオブジェクトに対して何もしません。objectPostProcessor - 使用する ObjectPostProcessorpublic void setBuilder(B builder)
AnnotationBuilder を設定します。これは、AbstractConfiguredAnnotationBuilder.apply(AnnotationConfigurerAdapter) を使用すると自動的に設定されます builder - 設定する AnnotationBuilderpublic boolean isAssignable(AnnotationBuilder<O> builder)
AnnotationConfigurer<O, B extends AnnotationBuilder<O>> 内の isAssignable