public class DefaultServiceCollectionListener<T> extends Object implements ServiceCollectionListener<T>
| Constructor and Description |
|---|
DefaultServiceCollectionListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
serviceAdded(org.osgi.framework.ServiceReference serviceReference,
T service)
Default implementation just returns true, so the service get's added to the collection.
|
void |
serviceRemoved(org.osgi.framework.ServiceReference serviceReference,
T service)
Default implementation does nothing.
|
public boolean serviceAdded(org.osgi.framework.ServiceReference serviceReference,
T service)
serviceAdded in interface ServiceCollectionListener<T>serviceReference - service reference of the added serviceservice - the service that was addedServiceCollectionListener.serviceAdded(org.osgi.framework.ServiceReference,Object)public void serviceRemoved(org.osgi.framework.ServiceReference serviceReference,
T service)
serviceRemoved in interface ServiceCollectionListener<T>serviceReference - service reference of the removed serviceservice - the service that was removedServiceCollectionListener.serviceRemoved(org.osgi.framework.ServiceReference,Object)Copyright © 2006–2015 OPS4J - Open Participation Software for Java. All rights reserved.