public abstract class AbstractBundleTracker extends Object implements org.springframework.beans.factory.BeanFactoryAware, org.osgi.framework.BundleListener, org.springframework.osgi.context.BundleContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
BundleListener use the extender pattern to scan all loaded
 bundles if a class name with a given name is present. If so it register in
 the BeanDefinitionRegistry and also register it to the OSG-Registry via an OsgiServiceFactoryBean| Constructor and Description | 
|---|
| AbstractBundleTracker() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet() | 
| void | bundleChanged(org.osgi.framework.BundleEvent event) | 
| void | destroy() | 
| protected abstract String | getComponentName()Return the name of the component | 
| protected abstract Class<?> | getServiceClass()Return the class which will be used to expose the service in the OSGI
 registry | 
| void | setBeanFactory(org.springframework.beans.factory.BeanFactory factory) | 
| void | setBundleContext(org.osgi.framework.BundleContext context) | 
public void setBeanFactory(org.springframework.beans.factory.BeanFactory factory)
                    throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setBundleContext(org.osgi.framework.BundleContext context)
setBundleContext in interface org.springframework.osgi.context.BundleContextAwarepublic void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic void afterPropertiesSet()
                        throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy()
             throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionprotected abstract String getComponentName()
protected abstract Class<?> getServiceClass()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.