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 java.lang.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.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)
-
-
-
Constructor Detail
-
InterfaceMapper
public InterfaceMapper(java.lang.Class<T> clazz, org.osgi.framework.BundleContext bundleContext)
-
-