public class SimpleBeanInfoFactory extends ObjectSE implements BeanInfoFactory, Ordered
IntrospectorSE をバイパスしてイントロスペクションを高速化する BeanInfoFactory 実装。(Spring で一般的に必要とされる) 基本的なプロパティの決定に縮小されます。 他のカスタム org.springframework.beans.BeanInfoFactory 宣言をオーバーライドして、次の内容の META-INF/spring.factories ファイルを介して構成する: org.springframework.beans.BeanInfoFactory=org.springframework.beans.SimpleBeanInfoFactory
他のユーザー定義の BeanInfoFactory 型が優先されることを許可しながら、必要に応じて ExtendedBeanInfoFactory (デフォルトで 5.3 に登録されている) をオーバーライドするために Ordered.LOWEST_PRECEDENCE - 1 でオーダーされます。
ExtendedBeanInfoFactory, CachedIntrospectionResultsHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| コンストラクターと説明 |
|---|
SimpleBeanInfoFactory() |
| 修飾子と型 | メソッドと説明 |
|---|---|
BeanInfoSE | getBeanInfo(ClassSE<?> beanClass) サポートされている場合、指定されたクラスの Bean 情報を返します。 |
int | getOrder() このオブジェクトの順序値を取得します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE@NonNull public BeanInfoSE getBeanInfo(ClassSE<?> beanClass) throws IntrospectionExceptionSE
BeanInfoFactoryBeanInfoFactory 内の getBeanInfo beanClass - Bean クラス null IntrospectionExceptionSE - 例外の場合 public int getOrder()
Ordered 値が高いほど、優先度は低くなります。結果として、最も低い値を持つオブジェクトが最高の優先度を持ちます(サーブレット load-on-startup の値に多少似ています)。
同じ順序の値は、影響を受けるオブジェクトの任意のソート位置になります。
Ordered 内の getOrder Ordered.HIGHEST_PRECEDENCE, Ordered.LOWEST_PRECEDENCE