Interface InjectionCarrier


public interface InjectionCarrier
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. Only the message types with such a completion point declare this interface, so the decoder refuses a recording arriving with any other form instead of attaching a holder nothing would ever claim.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sets the objects that arrived with this message and await injection.
  • Method Details

    • setPendingInjections

      void setPendingInjections(PendingInjections pendingInjections)
      Sets the objects that arrived with this message and await injection. This is called by the decoder for a message it decoded and only there: a locally created message brings no such objects.
      Parameters:
      pendingInjections - The objects that arrived with this message and await injection. This must not be null, a message without such objects gets no holder at all.