org.robokind.api.common.osgi
Class ServiceClassListener<T>

java.lang.Object
  extended by org.robokind.api.common.osgi.ServiceClassListener<T>
All Implemented Interfaces:
EventListener, org.osgi.framework.ServiceListener

public abstract class ServiceClassListener<T>
extends Object
implements org.osgi.framework.ServiceListener

Author:
Matthew Stevenson

Field Summary
protected  org.osgi.framework.BundleContext myContext
           
protected  List<T> myList
           
 
Constructor Summary
ServiceClassListener(Class<T> clazz, org.osgi.framework.BundleContext context, String serviceFilter)
           
 
Method Summary
protected abstract  void addService(T t)
           
protected abstract  void removeService(T t)
           
 void serviceChanged(org.osgi.framework.ServiceEvent se)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myList

protected List<T> myList

myContext

protected org.osgi.framework.BundleContext myContext
Constructor Detail

ServiceClassListener

public ServiceClassListener(Class<T> clazz,
                            org.osgi.framework.BundleContext context,
                            String serviceFilter)
Parameters:
context -
list -
Method Detail

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent se)
Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener

addService

protected abstract void addService(T t)

removeService

protected abstract void removeService(T t)


Copyright © 2011. All Rights Reserved.