|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.solarmetric.kodo.util.ImplHelper
Provide static access to the JDOImplHelper without the need for
security checks.
| Constructor Summary | |
ImplHelper()
|
|
| Method Summary | |
protected static void |
cachePersistentTypes()
|
static JDOImplHelper |
getInstance()
Return an instanceof the JDOImplHelper. |
static Set |
getPersistentClasses()
Return a set of all classes registered with the JDOImplHelper. |
static Set |
getPersistentClasses(ClassLoader loader)
Return a set of all the classes that can be accessed by the specified ClassLoader. |
static Class[] |
getSubclasses(Class type)
Return an array of all classes registered with the JDOImplHelper that are subclasses of type (as
deemed by calls to type.isAssignableFrom()). |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ImplHelper()
| Method Detail |
public static JDOImplHelper getInstance()
JDOImplHelper.public static Set getPersistentClasses()
Return a set of all classes registered with the JDOImplHelper. The returned set is not updated as new persistent types are registered with the JDOImplHelper; it is a snapshot of the currently-registered types. Because of this, we can ensure that we are not susceptible to concurrent modification exceptions if classes are registered while we iterate through this set.
protected static void cachePersistentTypes()
public static Set getPersistentClasses(ClassLoader loader)
Return a set of all the classes that can be accessed by the specified ClassLoader. This is used in order to determine which registered classes are usable in a certain ClassLoader.
This method is not particularly fast, as it uses reflection
to load the classes returned by getPersistentClasses() in loader.
public static Class[] getSubclasses(Class type)
Return an array of all classes registered with the
JDOImplHelper that are subclasses of type (as
deemed by calls to type.isAssignableFrom()). The
returned set is not updated as new persistent types are
registered with the JDOImplHelper; it is a snapshot of the
currently-registered types. Because of this, we can ensure
that we are not susceptible to concurrent modification
exceptions if classes are registered while we iterate through
this set.
The returned array should not be mutated.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||