Package org.openhab.core.config.core
Annotation Interface ConfigurableService
@ComponentPropertyType
@Retention(CLASS)
@Target(TYPE)
@NonNullByDefault
public @interface ConfigurableService
ConfigurableService
can be used as a marker interface for configurable services. But the interface itself is
not relevant for the runtime. Each service which has the property
description_uri()
set will be considered as a configurable service. The
properties label()
and category()
are optional.
The services are configured through the OSGi configuration admin. Therefore each service must provide a PID or a
component name service property if the configuration is done by declarative services. If the
Constants.SERVICE_PID
property is not set the
ComponentConstants.COMPONENT_NAME
property will be used as fallback.
- Author:
- Dennis Nobel - Initial contribution, Wouter Born - Change to ComponentPropertyType
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionThe config description URI for the configurable service. -
Optional Element Summary
-
Field Summary
-
Field Details
-
PREFIX_
- See Also:
-
-
Element Details
-
description_uri
String description_uriThe config description URI for the configurable service. See alsoConfigDescription
.
-
-
-
label
String labelThe label of the service to be configured.- Default:
- ""
-
category
String categoryThe category of the service to be configured (e.g. binding).- Default:
- ""
-
factory
boolean factoryMarker for multiple configurations for this service ("true" = multiple configurations possible)- Default:
- false
-