org.apache.tuscany.sca.extensibility.equinox
Class EquinoxServiceDiscoverer

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

public class EquinoxServiceDiscoverer
extends java.lang.Object
implements ServiceDiscoverer

A ServiceDiscoverer that find META-INF/services/... in installed bundles


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

Constructor Detail

EquinoxServiceDiscoverer

public EquinoxServiceDiscoverer(BundleContext context)
Method Detail

init

public static void init()

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