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 |
|---|---|
java.lang.Class<?> |
getClassforName(java.lang.String className)
Returns the
Class for the given class name similar
to Class.forName(String). |
<S> java.lang.Iterable<S> |
loadServices(java.lang.Class<?> contextClass,
java.lang.Class<S> service)
Loads all configured services similar to
ServiceLoader.load(Class). |
java.lang.Class<?> getClassforName(java.lang.String className)
throws java.lang.ClassNotFoundException
Class for the given class name similar
to Class.forName(String).className - The name of the class.Class instance.java.lang.ClassNotFoundException - Occurred Exception if Class is not available.<S> java.lang.Iterable<S> loadServices(java.lang.Class<?> contextClass,
java.lang.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.