类 TypeMismatchNamingException

所有已实现的接口:
Serializable

public class TypeMismatchNamingException extends NamingException
Exception thrown if a type mismatch is encountered for an object located in a JNDI environment. Thrown by JndiTemplate.
从以下版本开始:
4.0
作者:
Juergen Hoeller
另请参阅:
  • 构造器详细资料

    • 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
  • 方法详细资料

    • 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.