com.atlassian.jira.multitenant
Class MultiTenantHostComponentProxier
java.lang.Object
com.atlassian.jira.multitenant.MultiTenantHostComponentProxier
public class MultiTenantHostComponentProxier
- extends Object
Proxies components provided to the plugins system from JIRA, and adds new instances to the proxies as new tenants
are brought up/down.
- Since:
- v4.3
Constructor Summary |
MultiTenantHostComponentProxier(com.atlassian.multitenant.MultiTenantComponentFactory factory,
com.atlassian.multitenant.TenantReference tenantReference,
com.atlassian.multitenant.MultiTenantManager multiTenantManager,
PluginsEventPublisher eventPublisher)
|
Method Summary |
void |
addToRegistry(List<com.atlassian.plugin.osgi.hostcomponents.HostComponentRegistration> registry,
com.atlassian.plugin.osgi.hostcomponents.ComponentRegistrar registrar)
|
void |
destroy(com.atlassian.plugin.osgi.container.OsgiContainerStoppedEvent event)
Destroys all MultiTenantComponentMap's after the OSGi container has been stopped. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiTenantHostComponentProxier
public MultiTenantHostComponentProxier(com.atlassian.multitenant.MultiTenantComponentFactory factory,
com.atlassian.multitenant.TenantReference tenantReference,
com.atlassian.multitenant.MultiTenantManager multiTenantManager,
PluginsEventPublisher eventPublisher)
addToRegistry
public void addToRegistry(List<com.atlassian.plugin.osgi.hostcomponents.HostComponentRegistration> registry,
com.atlassian.plugin.osgi.hostcomponents.ComponentRegistrar registrar)
destroy
@EventListener
public void destroy(com.atlassian.plugin.osgi.container.OsgiContainerStoppedEvent event)
- Destroys all MultiTenantComponentMap's after the OSGi container has been stopped. It is important to wait
until all bundles have been destroyed because some bundles will try to call into other bundles during the
shutdown process and if the MT maps have already been destroyed this leads to loads of exceptions during
shutdown.
- Parameters:
event
- a OsgiContainerStoppedEvent
Copyright © 2002-2013 Atlassian. All Rights Reserved.