站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

TypeMismatchNamingException (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.jndi
Class TypeMismatchNamingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.naming.NamingException
              extended by org.springframework.jndi.TypeMismatchNamingException
All Implemented Interfaces:
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.

Since:
1.2.8
Author:
Juergen Hoeller
See Also:
JndiTemplate.lookup(String, Class), Serialized Form

Field Summary
 
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
 
Constructor Summary
TypeMismatchNamingException(String explanation)
          Construct a new TypeMismatchNamingException.
TypeMismatchNamingException(String jndiName, Class requiredType, Class actualType)
          Construct a new TypeMismatchNamingException, building an explanation text from the given arguments.
 
Method Summary
 Class getActualType()
          Return the actual type that the lookup returned, if available.
 Class getRequiredType()
          Return the required type for the lookup, if available.
 
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeMismatchNamingException

public TypeMismatchNamingException(String jndiName,
                                   Class requiredType,
                                   Class actualType)
Construct a new TypeMismatchNamingException, building an explanation text from the given arguments.

Parameters:
jndiName - the JNDI name
requiredType - the required type for the lookup
actualType - the actual type that the lookup returned

TypeMismatchNamingException

public TypeMismatchNamingException(String explanation)
Construct a new TypeMismatchNamingException.

Parameters:
explanation - the explanation text
Method Detail

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.


The Spring Framework

Copyright © 2002-2007 The Spring Framework.