Interface Initializer<I>
- Type Parameters:
I
- the type of contextual instance
- All Superinterfaces:
Aggregate
An interface whose implementations initialize contextual instances.
Initializer
s are subordinate to Producer
s, 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 suppliedRequest
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 benull
r
- aRequest
that 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:
-