Interface Initializer<I>
- Type Parameters:
I- the type of contextual instance
- All Superinterfaces:
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:
-
Field Summary
Fields inherited from interface org.microbean.bean.Aggregate
EMPTY_ASSIGNMENTS, EMPTY_DEPENDENCIES -
Method Summary
Methods inherited from interface org.microbean.bean.Aggregate
assign, dependencies
-
Method Details
-
initialize
Initializes the supplied contextual instance, possibly using the suppliedRequestto obtain supporting contextual references.Typically
Initializerimplementations will call initializer methods and perform field injection on the supplied contextual instance.- Parameters:
i- the contextual instance to initialize; may benullr- aRequestthat can be used to acquire supporting contextual references; may benull- Returns:
- the initialized instance, or a copy of it, or a stand-in for it
- See Also:
-