Interface ChildIterable<T>

  • All Superinterfaces:
    java.lang.Iterable<T>
    All Known Implementing Classes:
    ChildIterableImpl

    public interface ChildIterable<T>
    extends java.lang.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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T byKey​(java.lang.String key)
      Gets the child with the given key.
      java.lang.Iterable<ServiceHandle<T>> handleIterator()
      Returns an iterator of the children's Service Handle, rather than their services
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Method Detail

      • byKey

        T byKey​(java.lang.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

        java.lang.Iterable<ServiceHandle<T>> handleIterator()
        Returns an iterator of the children's Service Handle, rather than their services
        Returns:
        the iterator