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.
Method Summary |
static java.lang.String |
findService(java.lang.String name)
Find the first listed provider for the given service name |
static java.util.Enumeration |
findServices(java.lang.String name)
Return an Enumeration of class name Strings of
available provider classes for the given service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FactoryServiceFinder
public FactoryServiceFinder()
findService
public static java.lang.String findService(java.lang.String name)
throws java.io.IOException
- Find the first listed provider for the given service name
java.io.IOException
findServices
public static java.util.Enumeration findServices(java.lang.String name)
throws java.io.IOException
- Return an Enumeration of class name Strings of
available provider classes for the given service.
java.io.IOException