org.springframework.osgi.context
Interface BundleContextAware

All Known Implementing Classes:
AbstractOsgiServiceImportFactoryBean, BeanNameServicePropertiesResolver, BundleFactoryBean, OsgiServiceCollectionProxyFactoryBean, OsgiServiceFactoryBean, OsgiServiceProxyFactoryBean, ServiceReferenceInjectionBeanPostProcessor

public interface BundleContextAware

Interface that enables beans to find the bundle context they are defined in. Note that in most circumstances there is no need for a bean to implement this interface.

Author:
Adrian Colyer

Method Summary
 void setBundleContext(BundleContext bundleContext)
          Set the BundleContext that this bean runs in.
 

Method Detail

setBundleContext

void setBundleContext(BundleContext bundleContext)
Set the BundleContext that this bean runs in. Normally this can be used to initialize an object.

Parameters:
bundleContext - the BundleContext object to be used by this object


Copyright 2006-2008 Spring Framework. All Rights Reserved.