Liferay 7.0-ce-b4

com.liferay.portal.kernel.spring.osgi
Annotation Type OSGiBeanProperties


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface OSGiBeanProperties

Provides the OSGi service properties used when publishing Spring beans as services.


Optional Element Summary
 boolean portalPropertiesRemovePrefix
          Returns true if the property prefix should be removed from portal.properties.
 String portalPropertyPrefix
          Returns the value of the property prefix used for retrieving properties from portal.properties.
 String[] property
          Returns the service properties.
 Class<?>[] service
          Returns the types under which the bean is published as a service.
 

portalPropertiesRemovePrefix

public abstract 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

public abstract 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

public abstract 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

public abstract Class<?>[] service
Returns the types under which the bean is published as a service.

Returns:
the service types
Default:
{}

Liferay 7.0-ce-b4