public interface IClassLoader
Classes at
runtime in a special application type.
There is no need to work with this interface directly.
The instance to use and all required functionality is
provided by the ClassLoaderUtil.
ClassLoaderUtil| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getClassforName(String className)
Returns the
Class for the given class name similar
to Class.forName(String). |
<S> Iterable<S> |
loadServices(Class<?> contextClass,
Class<S> service)
Loads all configured services similar to
ServiceLoader.load(Class). |
Class<?> getClassforName(String className) throws ClassNotFoundException
Class for the given class name similar
to Class.forName(String).className - The name of the class.Class instance.ClassNotFoundException - Occurred Exception if Class is not available.<S> Iterable<S> loadServices(Class<?> contextClass, Class<S> service)
ServiceLoader.load(Class).contextClass - The calling Class which ClassLoader knows the configuration-file.service - The requested service.Iterable with the created service instances.