org.springframework.osgi.service.exporter.support
Class BeanNameServicePropertiesResolver
java.lang.Object
org.springframework.osgi.service.exporter.support.BeanNameServicePropertiesResolver
- All Implemented Interfaces:
- InitializingBean, BundleContextAware, OsgiServicePropertiesResolver
public class BeanNameServicePropertiesResolver
- extends Object
- implements OsgiServicePropertiesResolver, BundleContextAware, InitializingBean
OsgiServicePropertiesResolver
that creates a service property set
with the following properties:
- Bundle-SymbolicName=<bundle symbolic name>
- Bundle-Version=<bundle version>
- org.springframework.osgi.bean.name="<bean name>
- Author:
- Adrian Colyer, Hal Hildebrand
- See Also:
OsgiServicePropertiesResolver
,
OsgiServiceFactoryBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanNameServicePropertiesResolver
public BeanNameServicePropertiesResolver()
getServiceProperties
public Map getServiceProperties(String beanName)
- Description copied from interface:
OsgiServicePropertiesResolver
- Returns a map containing the service properties associated with the given
Spring managed bean identified by its name.
- Specified by:
getServiceProperties
in interface OsgiServicePropertiesResolver
- Parameters:
beanName
- Spring managed bean name
- Returns:
- map containing the service properties
setBundleContext
public void setBundleContext(BundleContext context)
- Description copied from interface:
BundleContextAware
- Set the
BundleContext
that this bean runs in. Normally this can
be used to initialize an object.
- Specified by:
setBundleContext
in interface BundleContextAware
- Parameters:
context
- the BundleContext
object to be used
by this object
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
Copyright © 2006-2008 Spring Framework. All Rights Reserved.