public class CrowdOsgiContainerManager
extends com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager
ServiceTracker
instances willy nilly, while at the same time circumventing a memory leak in FelixOsgiContainerManager (JRA-18766).| Constructor and Description |
|---|
CrowdOsgiContainerManager(com.atlassian.plugin.osgi.container.OsgiPersistentCache persistentCache,
com.atlassian.plugin.osgi.container.PackageScannerConfiguration packageScannerConfig,
com.atlassian.plugin.osgi.hostcomponents.HostComponentProvider provider,
com.atlassian.plugin.event.PluginEventManager eventManager,
com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getOsgiComponentOfType(Class<T> clazz)
Retrieves and returns a public component from OSGi land via its class or interface name.
|
<T> List<T> |
getOsgiComponentsOfType(Class<T> clazz)
Retrieves and returns all public components from OSGi land via its class or interface name.
|
void |
stop() |
addBundleListener, clearExportCache, getBundles, getHostComponentRegistrations, getRegisteredServices, getServiceTracker, getServiceTracker, installBundle, isRunning, onPluginFrameworkWarmRestarting, onPluginUninstallation, onPluginUpgrade, onShutdown, onStart, removeBundleListener, setDisableMultipleBundleVersions, setFelixLogger, startpublic CrowdOsgiContainerManager(com.atlassian.plugin.osgi.container.OsgiPersistentCache persistentCache,
com.atlassian.plugin.osgi.container.PackageScannerConfiguration packageScannerConfig,
com.atlassian.plugin.osgi.hostcomponents.HostComponentProvider provider,
com.atlassian.plugin.event.PluginEventManager eventManager,
com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory)
public <T> T getOsgiComponentOfType(Class<T> clazz)
Added as part of the fix for JRADEV-6195.
clazz - The interface class as a String@Nonnull public <T> List<T> getOsgiComponentsOfType(Class<T> clazz)
clazz - The interface class as a Stringpublic void stop()
throws com.atlassian.plugin.osgi.container.OsgiContainerException
stop in interface com.atlassian.plugin.osgi.container.OsgiContainerManagerstop in class com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManagercom.atlassian.plugin.osgi.container.OsgiContainerExceptionCopyright © 2021 Atlassian. All rights reserved.