Interface BeanConfiguration
- All Known Implementing Classes:
BasicBeanConfiguration
This API can be used to publish configuration information from one OSGi
bundle to another, without knowing the actual implementation of any
target service. For example, imagine two serial IO implementation bundles
exist, but the SolarNode application does not know which one the user
will choose to use. In this case, the SolarNode application bundle need
not import either of the IO implementation bundles directly. Instead it
can publish a BeanConfiguration service that the IO implementations
can register to use to configure itself.
The BeanConfigurationServiceRegistrationListener provides an
easy way for implementation bundles to bind to BeanConfiguration
services at runtime and dynamically publish services based on this
configuration.
- Version:
- $Id$
- Author:
- matt
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet configuration attributes as a Map.Get the configuration properties as a Map.Get a configuration ordering.
-
Method Details
-
getConfiguration
Get the configuration properties as a Map.- Returns:
- Map of configuration properties
-
getAttributes
Get configuration attributes as a Map.These attributes are not configuration properties that get applied directly to services, but can be used to distinguish one configuration from another.
- Returns:
- Map of configuration attributes
-
getOrdering
Integer getOrdering()Get a configuration ordering.The ordering can be used to treat similar configurations in an ordered fashion.
- Returns:
- an ordering
-