/** Static method to find the Repository to use. * @return Repository instance */ public static Repository getRepository () { initialize (); return repository; }
/** Static method to find the Repository to use. * @return Repository instance */ public static Repository getRepository () { initialize (); return repository; }
/** Loads a class of given name * @param name name of the class * @return the class * @exception ClassNotFoundException if class was not found */ public static Class findClass (String name) throws ClassNotFoundException { initialize (); ClassLoader c = (ClassLoader)Lookup.getDefault ().lookup (ClassLoader.class); if (c == null) { return Class.forName (name); } else { return Class.forName (name, true, c); } }
/** Loads a class of given name * @param name name of the class * @return the class * @exception ClassNotFoundException if class was not found */ public static Class findClass (String name) throws ClassNotFoundException { initialize (); ClassLoader c = (ClassLoader)Lookup.getDefault ().lookup (ClassLoader.class); if (c == null) { return Class.forName (name); } else { return Class.forName (name, true, c); } }