Skip to content

Supply the bound domain to provider initialization #615

Description

@jonathannorris

The spec now supplies the bound domain to a provider's initialize function, and adds an opt-in domain-scoped provider declaration that the API enforces by binding such a provider to at most one domain. This lets stateful providers (e.g. an OFREP static-context provider with a persistent cache) scope their state to a single, unambiguous domain.

What needs to happen

  • Pass the bound domain (if any) to the provider's initialize when it's registered via the provider mutator
  • Extend the provider initialize to accept the optional domain (non-breaking, additional optional parameter)
  • Add a way for a provider to declare itself domain-scoped
  • Enforce that a domain-scoped provider is bound to at most one domain, rejecting any attempt to bind an already-bound instance to another domain
  • Associated testing and docs

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions