Class InterfaceMapper<S,T>
- java.lang.Object
-
- org.opennms.features.apilayer.utils.InterfaceMapper<S,T>
-
- Type Parameters:
S- input interfaceT- mapped interface
- Direct Known Subclasses:
AlarmFeedbackListenerManager,AlarmLifecycleListenerManager,AlarmPersisterExtensionManager,DetectorManager,GraphContainerProviderManager,GraphProviderManager,HealthCheckManager,LegacyEdgeStatusProviderManager,LegacyVertexStatusProviderManager,RequisitionProviderManager,ServiceCollectorManager,ServicePollerManager,StatusProviderManager,TicketingPluginManager,TopologyEdgeConsumerManager
public abstract class InterfaceMapper<S,T> extends Object
Used to consume one type of interface from the OSGi registry, map this to another interface, and expose the mapped type.- Author:
- jwhite
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.BundleContextbundleContextprotected Class<T>clazzprotected Map<S,org.osgi.framework.ServiceRegistration<T>>extServiceRegistrationMap
-
Constructor Summary
Constructors Constructor Description InterfaceMapper(Class<T> clazz, org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getServiceProperties(S extension)abstract Tmap(S ext)voidonBind(S extension, Map properties)voidonUnbind(S extension, Map properties)
-