Builder

@ApiStatus.Experimental
class Builder

Collects registrations, defaults, roles and candidates, and validates them in build. Instances are not thread-safe.

Functions

Link copied to clipboard

Validates the bindings, builds the registry and logs one INFO summary. The capabilities of each decision service are read once here for the summary.

Link copied to clipboard

Sets the classification family default.

Link copied to clipboard

Binds role in the classification family to the service registered under name.

Link copied to clipboard

Sets the decision family default.

Link copied to clipboard

Binds role in the decision family to the service registered under name.

Link copied to clipboard

Offers the service registered under name as a family default candidate.

Link copied to clipboard
fun observationRegistry(registry: <Error class: unknown class>): DecisionServiceRegistry.Builder

Sets the observation registry. It must be the registry the registered services observe with. With any other registry, operation bindings open scopes on the wrong registry and provider calls lose their parent observation.

Link copied to clipboard