Annotation Interface ServiceProperty


public @interface ServiceProperty
Denotes a single entry in the service property Map that is added to the OSGi Service Registry.

Multiple properties can be declared in any class annotated by ExportAsService, ExportAsDevService or ModuleType.

For every ServiceProperty defined, an entry will be added to the service property map in the OSGi registry.

Since:
2.2.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The key to be put into the service registry map.
    The value to be put into the service registry map.
  • Element Details

    • key

      String key
      The key to be put into the service registry map.
      Returns:
      the key to use
    • value

      String value
      The value to be put into the service registry map.
      Returns:
      the value corresponding to the key.