public class OsgiServiceTrackerCacheImpl extends Object implements OsgiServiceTrackerCache, InitializingComponent
Constructor and Description |
---|
OsgiServiceTrackerCacheImpl(com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager,
com.atlassian.plugin.event.PluginEventManager pluginEventManager) |
Modifier and Type | Method and Description |
---|---|
void |
afterInstantiation() |
<T> T |
getOsgiComponentOfType(Class<T> clazz)
Retrieves and returns a public component from OSGi land via its class.
|
void |
onOsgiContainerStartedEvent(com.atlassian.plugin.osgi.container.OsgiContainerStartedEvent event)
Registers the
serviceTrackers cache in JIRA instrumentation. |
void |
onPluginFrameworkShutdownEvent(com.atlassian.plugin.osgi.container.OsgiContainerStoppedEvent event) |
public OsgiServiceTrackerCacheImpl(com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
public void afterInstantiation() throws Exception
afterInstantiation
in interface InitializingComponent
Exception
public <T> T getOsgiComponentOfType(Class<T> clazz)
getOsgiComponentOfType
in interface OsgiServiceTrackerCache
clazz
- The interface classpublic void onOsgiContainerStartedEvent(com.atlassian.plugin.osgi.container.OsgiContainerStartedEvent event)
serviceTrackers
cache in JIRA instrumentation.public void onPluginFrameworkShutdownEvent(com.atlassian.plugin.osgi.container.OsgiContainerStoppedEvent event)
Copyright © 2002-2024 Atlassian. All Rights Reserved.