|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.naming.NamingException
org.springframework.jndi.TypeMismatchNamingException
public class TypeMismatchNamingException
Exception thrown if a type mismatch is encountered for an object located in a JNDI environment. Thrown by JndiTemplate.
JndiTemplate.lookup(String, Class),
Serialized Form| Field Summary |
|---|
| Fields inherited from class javax.naming.NamingException |
|---|
remainingName, resolvedName, resolvedObj, rootException |
| Constructor Summary | |
|---|---|
TypeMismatchNamingException(java.lang.String explanation)
Construct a new TypeMismatchNamingException. |
|
TypeMismatchNamingException(java.lang.String jndiName,
java.lang.Class requiredType,
java.lang.Class actualType)
Construct a new TypeMismatchNamingException, building an explanation text from the given arguments. |
|
| Method Summary | |
|---|---|
java.lang.Class |
getActualType()
Return the actual type that the lookup returned, if available. |
java.lang.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 |
|---|
public TypeMismatchNamingException(java.lang.String jndiName,
java.lang.Class requiredType,
java.lang.Class actualType)
jndiName - the JNDI namerequiredType - the required type for the lookupactualType - the actual type that the lookup returnedpublic TypeMismatchNamingException(java.lang.String explanation)
explanation - the explanation text| Method Detail |
|---|
public final java.lang.Class getRequiredType()
public final java.lang.Class getActualType()
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||