org.apache.tuscany.sca.extensibility
Class ContextClassLoaderServiceDiscoverer

java.lang.Object
  extended by org.apache.tuscany.sca.extensibility.ContextClassLoaderServiceDiscoverer
All Implemented Interfaces:
ServiceDiscoverer

public class ContextClassLoaderServiceDiscoverer
extends java.lang.Object
implements ServiceDiscoverer

A ServiceDiscoverer that find META-INF/services/... using the Context ClassLoader.


Nested Class Summary
 class ContextClassLoaderServiceDiscoverer.ServiceDeclarationImpl
           
 
Constructor Summary
ContextClassLoaderServiceDiscoverer()
           
 
Method Summary
 java.util.Set<ServiceDeclaration> discover(java.lang.String serviceName, boolean firstOnly)
          Discover the service descriptors by name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextClassLoaderServiceDiscoverer

public ContextClassLoaderServiceDiscoverer()
Method Detail

discover

public java.util.Set<ServiceDeclaration> discover(java.lang.String serviceName,
                                                  boolean firstOnly)
Description copied from interface: ServiceDiscoverer
Discover the service descriptors by name

Specified by:
discover in interface ServiceDiscoverer
Parameters:
serviceName - The name of the service
firstOnly - A flag to indicate if only the first instance is to be discovered
Returns:
A set of service descriptors