类 TypeMismatchNamingException

    • 构造器详细资料

      • TypeMismatchNamingException

        public TypeMismatchNamingException​(String jndiName,
                                           Class<?> requiredType,
                                           Class<?> actualType)
        Construct a new TypeMismatchNamingException, building an explanation text from the given arguments.
        参数:
        jndiName - the JNDI name
        requiredType - the required type for the lookup
        actualType - the actual type that the lookup returned
      • TypeMismatchNamingException

        @Deprecated
        public TypeMismatchNamingException​(String explanation)
        已过时。
        as of Spring Framework 4.3.10
        Construct a new TypeMismatchNamingException.
        参数:
        explanation - the explanation text
    • 方法详细资料

      • getRequiredType

        public final Class<?> getRequiredType()
        Return the required type for the lookup, if available.
      • getActualType

        public final Class<?> getActualType()
        Return the actual type that the lookup returned, if available.