Interface DomainContext

  • All Known Implementing Classes:
    DomainContext.Global, DomainContextBase

    @API(status=MAINTAINED,
         since="1.2.0")
    public interface DomainContext
    Class that implement this interface are used to annotate property methods or containers like this: Domain(MyDomainContext.class). They must have a constructor without parameters to be usable in this way.

    Lifecycle: Instantiate exactly once per property, then initialize(PropertyLifecycleContext) will be called before providers and configurators will be retrieved.

    Most implementing class will subclass DomainContextBase.

    See Also:
    Domain, DomainContextBase