SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.kodo.util
Class ImplHelper

java.lang.Object
  |
  +--com.solarmetric.kodo.util.ImplHelper

public class ImplHelper
extends Object

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplHelper

public ImplHelper()
Method Detail

getInstance

public static JDOImplHelper getInstance()
Return an instanceof the JDOImplHelper.

getPersistentClasses

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.


cachePersistentTypes

protected static void cachePersistentTypes()

getPersistentClasses

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.


getSubclasses

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.

Since:
2.5.3

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.