Dependencies

Services

Applications can depend on services provided by the environment. These dependencies are declared in the header section of the manifest:

header:
  services:
    service-name: ... # Service descriptor

(where a service descriptor defines the commands provided by a service)

Environment Markers

Since platform services are internally implemented within environment markers, the same syntax can be used to declare dependencies on markers in the interface:

header:
  services:
    markers:
      has-internet-access:   consume-signal(unit)
      has-multicast-routing: consume-signal(unit)

The keys in the markers map are marker names and all values should be equal to consume-signal(unit).

Environment Properties

Environment properties are implemented as platform services, thus they must be declared in the manifest header. You will only be able to read properties you depend on:

header:
  services:
    properties:
      shared-database-jdbc-url: consume-signal(string)
      websphere-port:           consume-signal(int)

The keys are property names and the values must match the format consume-signal(<property type>)

(types are declared when properties are created and must match those in manifests)