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 classConverts OSGi bean properties from theOSGiBeanPropertiesannotation into a properties map.static classObtains types under which the bean is published as a service.static enum -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanReturnstrueif 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 portalPropertiesRemovePrefixReturnstrueif the property prefix should be removed fromportal.properties.- Returns:
trueif the property prefix should be removed fromportal.properties;falseotherwise
- 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:
- {}
-