Annotation Interface OSGiBeanProperties


@Retention(RUNTIME) @Target(TYPE) public @interface OSGiBeanProperties
Provides the OSGi service properties used when publishing Spring beans as services.
Author:
Raymond Augé
  • Element Details

    • portalPropertiesRemovePrefix

      boolean portalPropertiesRemovePrefix
      Returns true if the property prefix should be removed from portal.properties.
      Returns:
      true if the property prefix should be removed from portal.properties; false otherwise
      Default:
      true
    • portalPropertyPrefix

      String portalPropertyPrefix
      Returns the value of the property prefix used for retrieving properties from portal.properties.
      Returns:
      the value of the property prefix
      Default:
      ""
    • property

      String[] property
      Returns the service properties.

      Each property string is specified as "key=value". The type of the property value can be specified in the key as "key:type=value". The type must be from OSGiBeanProperties.Type. To specify a property with multiple values, use multiple key-value pairs. For example, "foo=bar", "foo=baz".

      Returns:
      the service properties
      Default:
      {}
    • service

      Class<?>[] service
      Returns the types under which the bean is published as a service.
      Returns:
      the service types
      Default:
      {}