クラス BeanNotOfRequiredTypeException

実装されたすべてのインターフェース:
SerializableSE
既知の直属サブクラス
BeanIsNotAFactoryException

public class BeanNotOfRequiredTypeException extends BeansException
Bean が予想される型と一致しない場合にスローされます。
作成者:
Rod Johnson, Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • BeanNotOfRequiredTypeException

      public BeanNotOfRequiredTypeException(StringSE beanName, ClassSE<?> requiredType, ClassSE<?> actualType)
      新しい BeanNotOfRequiredTypeException を作成します。
      パラメーター:
      beanName - リクエストされた Bean の名前
      requiredType - 必要な型
      actualType - 返された実際の型。予期した型と一致しませんでした
  • メソッドの詳細

    • getBeanName

      public StringSE getBeanName()
      間違った型のインスタンスの名前を返します。
    • getRequiredType

      public ClassSE<?> getRequiredType()
      Bean に期待される型を返します。
    • getActualType

      public ClassSE<?> getActualType()
      見つかったインスタンスの実際の型を返します。