net.sf.bus.util
Class Services

java.lang.Object
  |
  +--net.sf.bus.util.Services

public class Services
extends java.lang.Object

Utility methods for handling META-INF/services files

Author:
Thomas Down (http://www.biojava.org/)

Constructor Summary
Services()
           
 
Method Summary
static java.util.Set getImplementationNames(java.lang.Class serviceIF)
          Return a Set of names of implementations of the given service interface in the classloader from which this class was loaded.
static java.util.Set getImplementationNames(java.lang.Class serviceIF, java.lang.ClassLoader loader)
          Return a List of names of implementations of the given service interface available in a given classloader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Services

public Services()
Method Detail

getImplementationNames

public static java.util.Set getImplementationNames(java.lang.Class serviceIF)
                                            throws java.io.IOException
Return a Set of names of implementations of the given service interface in the classloader from which this class was loaded.

getImplementationNames

public static java.util.Set getImplementationNames(java.lang.Class serviceIF,
                                                   java.lang.ClassLoader loader)
                                            throws java.io.IOException
Return a List of names of implementations of the given service interface available in a given classloader.


This code may be freely distributed and modified under the terms of the GNU Lesser General Public Licence..