public class ServiceLoaderHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
createClassInstance(java.lang.Class<T> parent,
java.lang.String className)
Gets an instance of a class, based on its name.
|
public static <T> T createClassInstance(java.lang.Class<T> parent, java.lang.String className) throws ServiceLoadingException
T
- the class type.parent
- the parent class.className
- the name of the class to instantiate.ServiceLoadingException
- if an error occurs while instantiating the service implementation.