java.lang.Object
org.microbean.bean.InterceptingProducer<I>
-
Field Summary
Fields inherited from interface org.microbean.bean.Aggregate
EMPTY_ASSIGNMENTS, EMPTY_DEPENDENCIES -
Constructor Summary
ConstructorsConstructorDescriptionInterceptingProducer(Collection<? extends org.microbean.interceptor.InterceptorMethod> interceptorMethods, Producer<I> producer) -
Method Summary
Modifier and TypeMethodDescriptionfinal SequencedSet<? extends Assignment<?>> Assigns a contextual reference to each of thisAggregate'sAttributedElementinstances and returns the resultingListofAssignments.final SequencedSet<AttributedElement> Returns an unmodifiableSequencedSetofAttributedElementinstances.final voidfinal Iproduce(SequencedSet<? extends Assignment<?>> assignments) Produces a new contextual instance and returns it, possibly (often) making use of the supplied, dependent, contextual references.final I
-
Constructor Details
-
InterceptingProducer
public InterceptingProducer(Collection<? extends org.microbean.interceptor.InterceptorMethod> interceptorMethods, Producer<I> producer)
-
-
Method Details
-
assign
Description copied from interface:AggregateAssigns a contextual reference to each of thisAggregate'sAttributedElementinstances and returns the resultingListofAssignments.- Specified by:
assignin interfaceAggregate- Parameters:
r- aRequest; must not benull- Returns:
- a
ListofAssignmentinstances; nevernull
-
dependencies
Description copied from interface:AggregateReturns an unmodifiableSequencedSetofAttributedElementinstances.- Specified by:
dependenciesin interfaceAggregate- Returns:
- an unmodifiable
SequencedSetofAttributedElementinstances; nevernull - See Also:
-
dispose
-
produce
-
produce
Description copied from interface:ProducerProduces a new contextual instance and returns it, possibly (often) making use of the supplied, dependent, contextual references.Implementations of this method must not call
Producer.produce(Request)or an infinite loop may result.- Specified by:
producein interfaceProducer<I>- Parameters:
assignments- aSequencedSetofAssignments thisProducerneeds to create the contextual instance; must not benull- Returns:
- a new contextual instance, or
null
-