Annotation Interface OSGiBeanProperties
Provides the OSGi service properties used when publishing Spring beans as
services.
- Author:
- Raymond Augé
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Converts OSGi bean properties from theOSGiBeanProperties
annotation into a properties map.static class
Obtains types under which the bean is published as a service.static enum
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Returnstrue
if the property prefix should be removed fromportal.properties
.Returns the value of the property prefix used for retrieving properties fromportal.properties
.String[]
Returns the service properties.Class<?>[]
Returns the types under which the bean is published as a service.
-
Element Details
-
portalPropertiesRemovePrefix
boolean portalPropertiesRemovePrefixReturnstrue
if the property prefix should be removed fromportal.properties
.- Returns:
true
if the property prefix should be removed fromportal.properties
;false
otherwise
- Default:
- true
-
portalPropertyPrefix
String portalPropertyPrefixReturns the value of the property prefix used for retrieving properties fromportal.properties
.- Returns:
- the value of the property prefix
- Default:
- ""
-
property
String[] propertyReturns 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 fromOSGiBeanProperties.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<?>[] serviceReturns the types under which the bean is published as a service.- Returns:
- the service types
- Default:
- {}
-