public class

MultiTenantComponentFactoryBean

extends Object
implements BeanNameAware DisposableBean FactoryBean ApplicationContextAware
java.lang.Object
   ↳ com.atlassian.plugin.osgi.bridge.external.MultiTenantComponentFactoryBean

Class Overview

Spring FactoryBean, that returns a proxy to the component that selects the correct component based on the current tenant. Components are lazily instantiated, and DisposableBeans destroy() methods are called when a tenant is stopped.

Summary

Public Constructors
MultiTenantComponentFactoryBean()
Public Methods
void destroy()
synchronized Object getObject()
Class getObjectType()
boolean isSingleton()
void setApplicationContext(ApplicationContext applicationContext)
void setBeanName(String name)
void setImplementation(Class implementation)
void setInterfaces(Class[] interfaces)
void setLazyLoad(boolean lazyLoad)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.BeanNameAware
From interface org.springframework.beans.factory.DisposableBean
From interface org.springframework.beans.factory.FactoryBean
From interface org.springframework.context.ApplicationContextAware

Public Constructors

public MultiTenantComponentFactoryBean ()

Public Methods

public void destroy ()

Throws
Exception

public synchronized Object getObject ()

Throws
Exception

public Class getObjectType ()

public boolean isSingleton ()

public void setApplicationContext (ApplicationContext applicationContext)

public void setBeanName (String name)

public void setImplementation (Class implementation)

public void setInterfaces (Class[] interfaces)

public void setLazyLoad (boolean lazyLoad)