- All Known Subinterfaces:
Factory<I>
,Initializer<I>
,Producer<I>
- All Known Implementing Classes:
Bean
,Constant
,InterceptingProducer
public interface Aggregate
An object with dependencies.
By default, Aggregate
s have no dependencies.
- Author:
- Laird Nelson
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SequencedSet
<Assignment<?>> An immutable, emptySequencedSet
ofAssignment
s.static final SequencedSet
<AttributedElement> An immutable, emptySequencedSet
ofAttributedElement
s. -
Method Summary
Modifier and TypeMethodDescriptiondefault SequencedSet
<? extends Assignment<?>> Assigns a contextual reference to each of thisAggregate
'sAttributedElement
instances and returns the resultingList
ofAssignment
s.default SequencedSet
<AttributedElement> Returns an unmodifiableSequencedSet
ofAttributedElement
instances.
-
Field Details
-
EMPTY_ASSIGNMENTS
An immutable, emptySequencedSet
ofAssignment
s. -
EMPTY_DEPENDENCIES
An immutable, emptySequencedSet
ofAttributedElement
s.
-
-
Method Details
-
dependencies
Returns an unmodifiableSequencedSet
ofAttributedElement
instances.- Returns:
- an unmodifiable
SequencedSet
ofAttributedElement
instances; nevernull
- See Also:
-
assign
Assigns a contextual reference to each of thisAggregate
'sAttributedElement
instances and returns the resultingList
ofAssignment
s.- Parameters:
r
- aRequest
; must not benull
- Returns:
- a
List
ofAssignment
instances; nevernull
- Throws:
NullPointerException
- ifr
isnull
-