Package de.aristaflow.adept2.util.injection


package de.aristaflow.adept2.util.injection
  • Class
    Description
    The resolution surface of an injection driver: the engine calls it for every Injected field of a claimed instance and does not build it.
    Marks a transient, non-final instance field of a reference type to be populated from the local environment when an injection driver claims the object (deserialised by the communication layer or, in the future, created by the registry).
    Marks objects whose state is serialised but whose collaborators are re-bound locally: such an object is eligible for injection by the deserialisation driver, which populates the fields annotated with Injected from the local environment and then calls InjectionAware.afterInjection().
    Marks a message that carries the InjectionAware objects a recording stream met while decoding it: the decoder attaches them as a PendingInjections holder, and the completion point of the deserialisation driver claims them before the payload of the message is used.
    The driver-agnostic engine of the injection mechanism: instance plus bindings become populated Injected fields.
    One slot to populate: the field itself and everything its declaration adds to it.
    The environment could not complete an object when deserialising: a required Injected field the driver cannot satisfy, a declaration the environment cannot honour at all, an InjectionAware.afterInjection() that threw – or an InjectionAware object met by a stream that refuses such objects instead of recording them.
    Tool methods around the injection into deserialised objects, above all the refusal of InjectionAware objects by streams that have no driver to complete them.
    The InjectionAware objects a recording stream met while decoding, waiting for the completion point of the driver to claim them.
    An ObjectInputStream recording the InjectionAware objects it reads instead of refusing them: it is the reading half of a driver, which claims the recorded objects at its completion point.
    An ObjectInputStream refusing InjectionAware objects: a stream without a driver cannot re-bind the collaborators of such an object, so it must not hand it out with silently null fields.
    An ObjectOutputStream refusing InjectionAware objects, the mirror of RefusingObjectInputStream on the write side.