Domains Overview

The domain APIs are specifically designed to provide high convenience support for typical domain use cases.

The domain API is the entry point for accessing the different domain interfaces. It is available in opened projects in the form of the IDomainApi interface.

IDomainApi provides methods for accessing the different domain-specific APIs. Each domain's API is available via the domain's name. For an example see the communication domain API ICommunicationApiEntryPoint.

getDomain() allows accessing the IDomainApi

Accessing IDiagnosticsApi as a property
scriptTask('taskName') {
  code {
    // IDiagnosticsApi is available as "diagnostics" property
    def diagnostics = domain.diagnostics
  }
}

domain(Transformer) allows accessing the IDomainApi in a scope-like way.

Accessing IDiagnosticsApi in a scope-like manner
scriptTask('taskName') {
  code {
    domain.diagnostics {
      // IDiagnosticsApi is available here
    }
  }
}