Class InterfaceMapper<S,​T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.osgi.framework.BundleContext bundleContext  
      protected java.lang.Class<T> clazz  
      protected java.util.Map<S,​org.osgi.framework.ServiceRegistration<T>> extServiceRegistrationMap  
    • Constructor Summary

      Constructors 
      Constructor Description
      InterfaceMapper​(java.lang.Class<T> clazz, org.osgi.framework.BundleContext bundleContext)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getServiceProperties​(S extension)  
      abstract T map​(S ext)  
      void onBind​(S extension, java.util.Map properties)  
      void onUnbind​(S extension, java.util.Map properties)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • clazz

        protected final java.lang.Class<T> clazz
      • bundleContext

        protected final org.osgi.framework.BundleContext bundleContext
      • extServiceRegistrationMap

        protected final java.util.Map<S,​org.osgi.framework.ServiceRegistration<T>> extServiceRegistrationMap
    • Constructor Detail

      • InterfaceMapper

        public InterfaceMapper​(java.lang.Class<T> clazz,
                               org.osgi.framework.BundleContext bundleContext)
    • Method Detail

      • onBind

        public void onBind​(S extension,
                           java.util.Map properties)
      • onUnbind

        public void onUnbind​(S extension,
                             java.util.Map properties)
      • getServiceProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getServiceProperties​(S extension)
      • map

        public abstract T map​(S ext)