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
  • Constructor Details

    • HostComponentFactoryBean

      public HostComponentFactoryBean()
  • Method Details

    • getObject

      public Object getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean
    • getObjectType

      public Class getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean
    • setBundleContext

      public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
      Specified by:
      setBundleContext in interface org.eclipse.gemini.blueprint.context.BundleContextAware
    • setFilter

      public void setFilter(String filter)
      Sets the OSGi service filter.
      Parameters:
      filter - OSGi filter describing the importing OSGi service
    • setInterfaces

      public void setInterfaces(Class<?>[] interfaces)
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean