Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.gemini.blueprint.service.exporter.support
Class BeanNameServicePropertiesResolver

    java.lang.Object
      org.eclipse.gemini.blueprint.service.exporter.support.BeanNameServicePropertiesResolver

All Implemented Interfaces:
  BundleContextAware, OsgiServicePropertiesResolver, org.springframework.beans.factory.InitializingBean

    public class BeanNameServicePropertiesResolver

extends Object
implements OsgiServicePropertiesResolver, BundleContextAware, org.springframework.beans.factory.InitializingBean

`OsgiServicePropertiesResolver` that creates a service property set with the following properties:

- Bundle-SymbolicName=<bundle symbolic name>
- Bundle-Version=<bundle version>
- org.eclipse.gemini.blueprint.bean.name="<bean name>
- osgi.service.blueprint.compname="<bean name>

If the name is null/empty, the keys that refer to it will not be created.

Author:
  Adrian Colyer, Hal Hildebrand
See Also:
  `OsgiServicePropertiesResolver`, `OsgiServiceFactoryBean`

Field Summary

Fields inherited from interface org.eclipse.gemini.blueprint.service.exporter.OsgiServicePropertiesResolver
`BEAN_NAME_PROPERTY_KEY, BLUEPRINT_COMP_NAME, SPRING_DM_BEAN_NAME_PROPERTY_KEY`

Constructor Summary
`BeanNameServicePropertiesResolver()`

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BeanNameServicePropertiesResolver

    public BeanNameServicePropertiesResolver()

Method Detail

### 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. The name can be null (for example if nested beans are exported).

  Specified by:
    `getServiceProperties` in interface `OsgiServicePropertiesResolver`
  Parameters:
    `beanName` - Spring managed bean name
  Returns:
    map containing the service properties

### setBundleContext

    public void setBundleContext(org.osgi.framework.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 `org.springframework.beans.factory.InitializingBean`
  Throws:
    `Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2012. All Rights Reserved.