org.seasar.cubby.spi.beans.impl
クラス DefaultBeanDescProvider

java.lang.Object
  上位を拡張 org.seasar.cubby.spi.beans.impl.DefaultBeanDescProvider
すべての実装されたインタフェース:
BeanDescProvider, Provider

public class DefaultBeanDescProvider
extends Object
implements BeanDescProvider

BeanDesc のプロバイダの標準的な実装です。

Introspector によって生成されるメタ情報とそのフィールドの情報を元に BeanDesc を構築します。

作成者:
baba

入れ子のクラスの概要
protected static class DefaultBeanDescProvider.BeanDescImpl
          BeanDesc の実装です。
protected static class DefaultBeanDescProvider.FieldAttribute
          フィールドに対する Attribute の実装です。
protected static class DefaultBeanDescProvider.ParameterizedClassDescImpl
          ParameterizedClassDescの実装クラスです。
protected static class DefaultBeanDescProvider.PropertyAttribute
          プロパティに対する Attribute の実装です。
 
フィールドの概要
protected  Map<Class<?>,BeanDesc> beanDescCache
          BeanDesc のキャッシュ。
 
コンストラクタの概要
DefaultBeanDescProvider()
           
 
メソッドの概要
protected  BeanDesc createBeanDesc(Class<?> clazz)
          BeanDesc を生成します。
protected static ParameterizedClassDesc createParameterizedClassDesc(Type type)
          Typeを表現するParameterizedClassDescを作成して返します。
 BeanDesc getBeanDesc(Class<?> clazz)
          指定されたクラスの BeanDesc を返します。
protected static Type[] getGenericParameter(Type type)
          typeの型引数の配列を返します。
protected static Class<?> getRawClass(Type type)
          typeの原型を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

beanDescCache

protected final Map<Class<?>,BeanDesc> beanDescCache
BeanDesc のキャッシュ。

コンストラクタの詳細

DefaultBeanDescProvider

public DefaultBeanDescProvider()
メソッドの詳細

getBeanDesc

public BeanDesc getBeanDesc(Class<?> clazz)
指定されたクラスの BeanDesc を返します。

定義:
インタフェース BeanDescProvider 内の getBeanDesc
パラメータ:
clazz - 対象となるクラス
戻り値:
指定されたクラスの BeanDesc

createBeanDesc

protected BeanDesc createBeanDesc(Class<?> clazz)
BeanDesc を生成します。

パラメータ:
clazz - 操作対象のクラス
戻り値:
BeanDesc

createParameterizedClassDesc

protected static ParameterizedClassDesc createParameterizedClassDesc(Type type)
Typeを表現するParameterizedClassDescを作成して返します。

パラメータ:
type - 型
戻り値:
型を表現するParameterizedClassDesc

getRawClass

protected static Class<?> getRawClass(Type type)
typeの原型を返します。

typeが原型でもパラメータ化された型でもない場合はnullを返します。

パラメータ:
type - タイプ
戻り値:
typeの原型

getGenericParameter

protected static Type[] getGenericParameter(Type type)
typeの型引数の配列を返します。

typeがパラメータ化された型でない場合はnullを返します。

パラメータ:
type - タイプ
戻り値:
typeの型引数の配列


Copyright © 2006-2010 The Seasar Foundation. All Rights Reserved.