Interface ChildIterable<T>
-
- All Superinterfaces:
Iterable<T>
- All Known Implementing Classes:
ChildIterableImpl
public interface ChildIterable<T> extends Iterable<T>
This interface can be used in conjunction with theChildInject
annotation to get the current list of children for this injection point- Author:
- jwells
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
byKey(String key)
Gets the child with the given key.Iterable<ServiceHandle<T>>
handleIterator()
Returns an iterator of the children's Service Handle, rather than their services
-
-
-
Method Detail
-
byKey
T byKey(String key)
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
-
-