com.bluecast.util
Class FactoryServiceFinder
java.lang.Object
com.bluecast.util.FactoryServiceFinder
public class FactoryServiceFinder
extends java.lang.Object
This class can enumerate all the Providers of a particular Service. It
searches the classpath for META-INF/services/ and returns
the first line of each service. That string is usually the name of the
factory class implementing the requested service.
static String | findService(String name) - Find the first listed provider for the given service name
|
static Enumeration | findServices(String name) - Return an Enumeration of class name Strings of
available provider classes for the given service.
|
findService
public static String findService(String name)
throws IOException
Find the first listed provider for the given service name
findServices
public static Enumeration findServices(String name)
throws IOException
Return an Enumeration of class name Strings of
available provider classes for the given service.