Interface PostInitializer<I>
- Type Parameters:
I
- the type of contextual instance
public interface PostInitializer<I>
An interface whose implementations complete initialization of contextual instances.
PostInitializer
s are typically applied to initialized
instances, i.e. contextual instances that have been fully injected.
PostInitializer
s are typically used in implementations of the Factory.create(Request)
method,
together with InterceptionsApplicator
s, Initializer
s and Producer
s.
- 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 benull
r
- aRequest
; must not benull
- Returns:
- a contextual instance that has been completely initialized; never
null
- Throws:
NullPointerException
- if either argument isnull
-