public class BeanNameServicePropertiesResolver extends java.lang.Object implements OsgiServicePropertiesResolver, BundleContextAware, org.springframework.beans.factory.InitializingBean
OsgiServicePropertiesResolver that creates a service property set with the following properties: | Modifier and Type | Field and Description |
|---|---|
private org.osgi.framework.BundleContext |
bundleContext |
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() |
private java.lang.String |
getBundleVersion() |
java.util.Map |
getServiceProperties(java.lang.String beanName)
Returns a map containing the service properties associated with the given Spring managed bean identified by its
name.
|
private java.lang.String |
getSymbolicName() |
void |
setBundleContext(org.osgi.framework.BundleContext context)
Set the
BundleContext that this bean runs in. |
public java.util.Map getServiceProperties(java.lang.String beanName)
OsgiServicePropertiesResolvergetServiceProperties in interface OsgiServicePropertiesResolverbeanName - Spring managed bean nameprivate java.lang.String getBundleVersion()
private java.lang.String getSymbolicName()
public void setBundleContext(org.osgi.framework.BundleContext context)
BundleContextAwareBundleContext that this bean runs in. Normally this can
be used to initialize an object.setBundleContext in interface BundleContextAwarecontext - the BundleContext object to be used
by this objectpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception