public class TypeMismatchNamingException extends NamingException
JndiTemplate.lookup(String, Class),
序列化表格remainingName, resolvedName, resolvedObj, rootException| 构造器和说明 |
|---|
TypeMismatchNamingException(String jndiName,
Class<?> requiredType,
Class<?> actualType)
Construct a new TypeMismatchNamingException,
building an explanation text from the given arguments.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Class<?> |
getActualType()
Return the actual type that the lookup returned, if available.
|
Class<?> |
getRequiredType()
Return the required type for the lookup, if available.
|
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toStringpublic TypeMismatchNamingException(String jndiName, Class<?> requiredType, Class<?> actualType)
jndiName - the JNDI namerequiredType - the required type for the lookupactualType - the actual type that the lookup returned