|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.kodo.runtime.JDOClassResolver
An imeplementation of ClassResolver that behaves in
strict accordance to section 12.5 of the JDO specification:
JDO requires access to class instances in several situations where the class instance is not provided explicitly. In these cases, the only information available to the implementation is the name of the class.
To resolve class names to class instances, JDO implementations will use Class.forName (String name, ClassLoader loader) with up to three loaders. These loaders will be used in this order:
| Method Summary | |
|---|---|
boolean |
canResolveClass(String className)
|
boolean |
equals(Object other)
Returns true if the two JDOClassResolvers use the same list of ClassLoaders, since they will resolve classes
in exactly the same way. |
int |
hashCode()
This method must be overridden for the standard hashCode() contract that is used when overriding the equals methos. |
Class |
resolveClass(String className)
Resolve the class for the specified name. |
InputStream |
resolveResource(String resourceName)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public Class resolveClass(String className)
ClassResolverresolveClass in interface ClassResolvercom.solarmetric.util.classes.ClassResolverclassName - the specified name to loadJDOFatalUserException - if the class cannot be loaded.public InputStream resolveResource(String resourceName)
resolveResource in interface ClassResolverpublic boolean canResolveClass(String className)
canResolveClass in interface ClassResolverpublic String toString()
toString in class Objectpublic boolean equals(Object other)
ClassLoaders, since they will resolve classes
in exactly the same way.equals in interface ClassResolverequals in class Objectcom.solarmetric.util.classes.ClassResolverObject.equals(Object)public int hashCode()
ClassResolverhashCode in interface ClassResolverhashCode in class Objectcom.solarmetric.util.classes.ClassResolverObject.hashCode()
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||