Interface Initializer<I>

Type Parameters:
I - the type of contextual instance
All Superinterfaces:
Aggregate

public interface Initializer<I> extends Aggregate
An interface whose implementations initialize contextual instances.

Initializers are subordinate to Producers, typically operating on the contextual instances they produce.

Author:
Laird Nelson
See Also:
  • Method Details

    • initialize

      I initialize(I i, Request<I> r)
      Initializes the supplied contextual instance, possibly using the supplied Request to obtain supporting contextual references.

      Typically Initializer implementations will call initializer methods and perform field injection on the supplied contextual instance.

      Parameters:
      i - the contextual instance to initialize; may be null
      r - a Request that can be used to acquire supporting contextual references; may be null
      Returns:
      the initialized instance, or a copy of it, or a stand-in for it
      See Also: