org.springframework.osgi.extender
Interface OsgiServiceDependencyFactory


public interface OsgiServiceDependencyFactory

Interface to be implemented by beans wishing to provide OSGi service dependencies required by the ApplicationContext. By default, the extender will postpone the context initialization until the dependencies (to OSGi services) are all satisfied at the same time.

Author:
Andy Piper, Costin Leau
See Also:
ApplicationContext, *

Method Summary
 Collection getServiceDependencies(BundleContext bundleContext, ConfigurableListableBeanFactory beanFactory)
          Returns the OSGi service dependencies applying for the given bean factory running inside the given bundle context.
 

Method Detail

getServiceDependencies

Collection getServiceDependencies(BundleContext bundleContext,
                                  ConfigurableListableBeanFactory beanFactory)
                                  throws BeansException,
                                         InvalidSyntaxException,
                                         BundleException
Returns the OSGi service dependencies applying for the given bean factory running inside the given bundle context. The returned collection should contain only OsgiServiceDependency objects.

Parameters:
bundleContext - bundle
beanFactory - the bean factory used by the application context
Returns:
collection of service dependencies
Throws:
BeansException - in case of factory errors
InvalidSyntaxException - in case of OSGi filters errors
BundleException - in case of OSGi bundle errors


Copyright © 2006-2009 Spring Framework. All Rights Reserved.