Skip to content

@service

Remie Bolte edited this page Jun 25, 2018 · 2 revisions

@Service(configuration: Service)

The Service decorator tells the command-line interface that this is a service object definition.

As service typically do not have a name but only a description (unless used as template), the name of the output file will consist of the host_name property of the host to which the service is attached and the service_description property of the service ('slugified' with any special characters removed and separated by a dash).

The resulting file in the output directory after compilation will be located in services/${host_name}-${service_description}.cfg.

Parameters

configuration: Service a JSON object with any of the options in the service object definition.

Please note: the configuration JSON object on each decorator will be merged with any properties that are specified on the class which is annotated by the decorator.

Clone this wiki locally