Package jade
Interface JadeClassLoaderService
-
public interface JadeClassLoaderServiceThe Interface JadeClassLoaderService describes the method structure that enables to place an alternative method that loads classes that are described by their names. In an OSGI context, this won't work, since each bundle has its own ClassLoader.- Author:
- Christian Derksen - SOFTEC - ICB - University of Duisburg-Essen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<?>forName(String className)Returns the Class object associated with the class or interface with the given string name.Class<?>forName(String className, boolean initialize, ClassLoader loader)Returns the Class object associated with the class or interface with the given string name, using the given class loader.
-
-
-
Method Detail
-
forName
Class<?> forName(String className) throws ClassNotFoundException, NoClassDefFoundError
Returns the Class object associated with the class or interface with the given string name.- Parameters:
className- the fully qualified name of the desired class- Returns:
- the class
- Throws:
ClassNotFoundExceptionNoClassDefFoundError
-
forName
Class<?> forName(String className, boolean initialize, ClassLoader loader) throws ClassNotFoundException, NoClassDefFoundError
Returns the Class object associated with the class or interface with the given string name, using the given class loader.- Parameters:
className- the fully qualified name of the desired classinitialize- whether the class must be initializedloader- the class loader from which the class must be loaded- Returns:
- the class
- Throws:
ClassNotFoundExceptionNoClassDefFoundError
-
-