Interface ChildIterable<T>
- All Superinterfaces:
Iterable<T>
- All Known Implementing Classes:
ChildIterableImpl
This interface can be used in conjunction with the
ChildInject
annotation to get the current
list of children for this injection point-
Method Summary
Modifier and TypeMethodDescriptionGets the child with the given key.Returns an iterator of the children's Service Handle, rather than their servicesMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
byKey
Gets the child with the given key. The separator used to determine the full suffix to look for in the child is given by theChildInject.separator()
field- Parameters:
key
- The non-null key of the child to get- Returns:
- The child who has the given key
-
handleIterator
Iterable<ServiceHandle<T>> handleIterator()Returns an iterator of the children's Service Handle, rather than their services- Returns:
- the iterator
-