public class Services extends Object
Constructor and Description |
---|
Services() |
Modifier and Type | Method and Description |
---|---|
static Class[] |
getImplementorClasses(Class serviceClass) |
static Class[] |
getImplementorClasses(Class serviceClass,
ClassLoader loader) |
static Class[] |
getImplementorClasses(String serviceName)
Return an array of Class objects of all known service implementors of the
specified class name(as resolved by the current thread's context class
loader).
|
static Class[] |
getImplementorClasses(String serviceName,
ClassLoader loader) |
static Class[] |
getImplementorClasses(String serviceName,
ClassLoader loader,
boolean skipMissing)
Return an array of Class objects of all known service implementors of the
specified class name, as resolved by the specified
ClassLoader . |
static String[] |
getImplementors(Class serviceClass)
Return an array of Strings of class names of all known service
implementors of the specified interface or class.
|
static String[] |
getImplementors(Class serviceClass,
ClassLoader loader)
Return an array of Strings of class names of all known service
implementors of the specified interface or class.
|
static String[] |
getImplementors(String serviceName)
Return an array of Strings of class names of all known service
implementors of the specified class name(as resolved by the current
thread's context class loader).
|
static String[] |
getImplementors(String serviceName,
ClassLoader loader)
Return an array of Strings of class names of all known service
implementors of the specified class name, as resolved by the specified
ClassLoader . |
public static String[] getImplementors(Class serviceClass)
public static String[] getImplementors(Class serviceClass, ClassLoader loader)
public static String[] getImplementors(String serviceName)
public static String[] getImplementors(String serviceName, ClassLoader loader)
ClassLoader
.public static Class[] getImplementorClasses(Class serviceClass, ClassLoader loader)
public static Class[] getImplementorClasses(String serviceName)
public static Class[] getImplementorClasses(String serviceName, ClassLoader loader)
public static Class[] getImplementorClasses(String serviceName, ClassLoader loader, boolean skipMissing) throws ClassNotFoundException
ClassLoader
.skipMissing
- if true, then ignore classes that cannot be loaded by
the classloader; otherwise, resolution failures will throw a
ClassNotFoundException
.ClassNotFoundException
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.