public class ServiceLoaderUtils
extends java.lang.Object
Constructor and Description |
---|
ServiceLoaderUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
newInstance(java.lang.String className)
Loads a class and instantiates it
|
static <T> T |
newInstance(java.lang.String className,
java.lang.ClassLoader loader)
Loads a class and instantiates it
|
static <T> void |
sortLoadedClasses(java.util.List<T> loaded)
Sorts a list of loaded classes, so that non-Tika ones come
before Tika ones, and otherwise in reverse alphabetical order
|
public static <T> void sortLoadedClasses(java.util.List<T> loaded)
public static <T> T newInstance(java.lang.String className)
T
- service typeclassName
- service class namepublic static <T> T newInstance(java.lang.String className, java.lang.ClassLoader loader)
T
- service typeclassName
- service class nameloader
- class loaderCopyright © 2010 - 2020 Adobe. All Rights Reserved