Interface PostInitializer<I>
- Type Parameters:
I- the type of contextual instance
public interface PostInitializer<I>
An interface whose implementations complete initialization of contextual instances.
PostInitializers are typically applied to initialized
instances, i.e. contextual instances that have been fully injected.
PostInitializers are typically used in implementations of the Factory.create(Request) method,
together with InterceptionsApplicators, Initializers and Producers.
- Author:
- Laird Nelson
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionpostInitialize(I i, Request<I> r) Completes the initialization of a contextual instance and returns the result.
-
Method Details
-
postInitialize
Completes the initialization of a contextual instance and returns the result.- Parameters:
i- an initialized contextual instance; must not benullr- aRequest; must not benull- Returns:
- a contextual instance that has been completely initialized; never
null - Throws:
NullPointerException- if either argument isnull
-