|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.extensibility.osgi.OSGiServiceDiscoverer
public class OSGiServiceDiscoverer
The ServiceDiscoverer that find META-INF/services/... in installed bundles
| Nested Class Summary | |
|---|---|
class |
OSGiServiceDiscoverer.ClassLoaderImpl
This class loader provides resource access to META-INF/services/... |
static class |
OSGiServiceDiscoverer.ServiceDeclarationImpl
|
| Constructor Summary | |
|---|---|
OSGiServiceDiscoverer(BundleContext context)
|
|
| Method Summary | |
|---|---|
java.util.Set<ServiceDeclaration> |
discover(java.lang.String serviceName,
boolean firstOnly)
Discover the service descriptors by name |
BundleContext |
getBundleContext()
|
java.lang.ClassLoader |
getContextClassLoader()
This class loader can be set as the thread context class loader for non-OSGi code |
protected static java.util.Map<java.lang.String,java.lang.String> |
parseServiceDeclaration(java.lang.String declaration)
Parse a service declaration in the form class;attr=value,attr=value and return a map of attributes |
static java.lang.String |
toString(Bundle b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OSGiServiceDiscoverer(BundleContext context)
| Method Detail |
|---|
public static java.lang.String toString(Bundle b)
protected static java.util.Map<java.lang.String,java.lang.String> parseServiceDeclaration(java.lang.String declaration)
declaration -
public BundleContext getBundleContext()
public java.lang.ClassLoader getContextClassLoader()
public java.util.Set<ServiceDeclaration> discover(java.lang.String serviceName,
boolean firstOnly)
ServiceDiscoverer
discover in interface ServiceDiscovererserviceName - The name of the servicefirstOnly - A flag to indicate if only the first instance is to be discovered
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||