Interface Producer<I>

Type Parameters:
I - the type of contextual instance
All Superinterfaces:
Aggregate
All Known Implementing Classes:
InterceptingProducer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Producer<I> extends Aggregate
An interface whose implementations produce possibly uninitialized contextual instances.

Producers are used to implement Factory instances' create(Request) and destroy(Object, Request) methods. Values returned from the produce(Request) method are often supplied to Initializers.

Author:
Laird Nelson
See Also: