Class ChildIterableImpl<T>

java.lang.Object
org.glassfish.hk2.configuration.internal.ChildIterableImpl<T>
All Implemented Interfaces:
Iterable<T>, ChildIterable<T>

public class ChildIterableImpl<T> extends Object implements ChildIterable<T>
  • Field Details

    • locator

      private final ServiceLocator locator
    • childType

      private final Type childType
    • prefix

      private final String prefix
    • separator

      private final String separator
    • baseFilter

      private final ChildFilter baseFilter
  • Constructor Details

  • Method Details

    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • byKey

      public T byKey(String key)
      Description copied from interface: ChildIterable
      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
      Specified by:
      byKey in interface ChildIterable<T>
      Parameters:
      key - The non-null key of the child to get
      Returns:
      The child who has the given key
    • handleIterator

      public Iterable<ServiceHandle<T>> handleIterator()
      Description copied from interface: ChildIterable
      Returns an iterator of the children's Service Handle, rather than their services
      Specified by:
      handleIterator in interface ChildIterable<T>
      Returns:
      the iterator