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 the ChildInject annotation to get the current list of children for this injection point
  • Method Details

    • 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 the ChildInject.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