Class HostComponentFactoryBean
java.lang.Object
com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean
- All Implemented Interfaces:
org.eclipse.gemini.blueprint.context.BundleContextAware,org.springframework.beans.factory.FactoryBean,org.springframework.beans.factory.InitializingBean
public class HostComponentFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.eclipse.gemini.blueprint.context.BundleContextAware
Simple factory bean to resolve host components. Since we know host components won't change during the bundle's
lifetime, we can use a direct reference instead of the fancy proxy stuff from Spring DM.
- Since:
- 2.2.0
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidsetBundleContext(org.osgi.framework.BundleContext bundleContext) voidSets the OSGi service filter.voidsetInterfaces(Class<?>[] interfaces)
-
Constructor Details
-
HostComponentFactoryBean
public HostComponentFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext) - Specified by:
setBundleContextin interfaceorg.eclipse.gemini.blueprint.context.BundleContextAware
-
setFilter
Sets the OSGi service filter.- Parameters:
filter- OSGi filter describing the importing OSGi service
-
setInterfaces
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-