public class DeclarationLinker extends java.lang.Object implements org.osgi.util.tracker.ServiceTrackerCustomizer, Lifecycle
Constructor and Description |
---|
DeclarationLinker(org.osgi.framework.BundleContext bundleContext,
QueueService queueService)
Creates the linker.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
addingService(org.osgi.framework.ServiceReference reference)
A new type declaration was published.
|
void |
modifiedService(org.osgi.framework.ServiceReference reference,
java.lang.Object service)
Type declaration cannot be modified.
|
void |
removedService(org.osgi.framework.ServiceReference reference,
java.lang.Object service)
A type declaration service was withdrawn from the service registry.
|
void |
start()
When the iPOJO management starts, we look for type declaration.
|
void |
stop()
When iPOJO stops, we close the tracker.
|
public DeclarationLinker(org.osgi.framework.BundleContext bundleContext, QueueService queueService)
bundleContext
- the bundle contextqueueService
- the queue servicepublic void start()
public void stop()
public java.lang.Object addingService(org.osgi.framework.ServiceReference reference)
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
reference
- the service reference of the type declarationpublic void modifiedService(org.osgi.framework.ServiceReference reference, java.lang.Object service)
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
reference
- the referenceservice
- the object returned by addingService(org.osgi.framework.ServiceReference)
public void removedService(org.osgi.framework.ServiceReference reference, java.lang.Object service)
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
reference
- the leaving referenceservice
- the object returned by addingService(org.osgi.framework.ServiceReference)
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.