org.ops4j.pax.swissbox.tracker
Interface ServiceCollectionListener<T>
- All Known Implementing Classes:
- DefaultServiceCollectionListener
public interface ServiceCollectionListener<T>
Method Summary |
boolean |
serviceAdded(org.osgi.framework.ServiceReference serviceReference,
T service)
Notify that a service is added. |
void |
serviceRemoved(org.osgi.framework.ServiceReference serviceReference,
T service)
Notify that a service was removed. |
serviceAdded
boolean serviceAdded(org.osgi.framework.ServiceReference serviceReference,
T service)
- Notify that a service is added.
- Parameters:
serviceReference
- service reference of the added serviceservice
- the service that was added
- Returns:
- true if the service should be retained in the collection, false otherwise
serviceRemoved
void serviceRemoved(org.osgi.framework.ServiceReference serviceReference,
T service)
- Notify that a service was removed.
- Parameters:
serviceReference
- service reference of the removed serviceservice
- the service that was removed
Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.