Class OsgiJolokiaServiceFactory
java.lang.Object
org.jolokia.server.core.service.impl.OsgiJolokiaServiceFactory
- All Implemented Interfaces:
JolokiaServiceLookup
Service Factory for tracking OSGi Jolokia Services
- Since:
- 19.06.13
- Author:
- roland
-
Constructor Summary
ConstructorsConstructorDescriptionOsgiJolokiaServiceFactory(org.osgi.framework.BundleContext pCtx) A new factory associated with the given context -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Close down the factory by closing all existing service trackers<T extends JolokiaService<?>>
Set<T>getServices(Class<T> pType) Get the current list of available services for a certain type.voidinit(JolokiaContext pJolokiaContext) Lifecycle method called when the service managed starts up
-
Constructor Details
-
OsgiJolokiaServiceFactory
public OsgiJolokiaServiceFactory(org.osgi.framework.BundleContext pCtx) A new factory associated with the given context- Parameters:
pCtx- the OSGi context
-
-
Method Details
-
getServices
Get the current list of available services for a certain type.- Specified by:
getServicesin interfaceJolokiaServiceLookup- Parameters:
pType- type for which to get the services- Returns:
- set of services for the required type or an empty set
-
init
Lifecycle method called when the service managed starts up- Specified by:
initin interfaceJolokiaServiceLookup- Parameters:
pJolokiaContext- created context
-
destroy
public void destroy()Close down the factory by closing all existing service trackers- Specified by:
destroyin interfaceJolokiaServiceLookup
-