public class BeanNameServicePropertiesResolver extends Object implements OsgiServicePropertiesResolver, BundleContextAware, org.springframework.beans.factory.InitializingBean
OsgiServicePropertiesResolver
that creates a service property set with the following properties: OsgiServicePropertiesResolver
,
OsgiServiceFactoryBean
BEAN_NAME_PROPERTY_KEY, BLUEPRINT_COMP_NAME, SPRING_DM_BEAN_NAME_PROPERTY_KEY
Constructor and Description |
---|
BeanNameServicePropertiesResolver() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Map |
getServiceProperties(String beanName)
Returns a map containing the service properties associated with the given Spring managed bean identified by its
name.
|
void |
setBundleContext(org.osgi.framework.BundleContext context)
Set the
BundleContext that this bean runs in. |
public Map getServiceProperties(String beanName)
OsgiServicePropertiesResolver
getServiceProperties
in interface OsgiServicePropertiesResolver
beanName
- Spring managed bean namepublic void setBundleContext(org.osgi.framework.BundleContext context)
BundleContextAware
BundleContext
that this bean runs in. Normally this can
be used to initialize an object.setBundleContext
in interface BundleContextAware
context
- the BundleContext
object to be used
by this objectCopyright © 2006–2017. All rights reserved.