Class ChildIterableImpl<T>
java.lang.Object
org.glassfish.hk2.configuration.internal.ChildIterableImpl<T>
- All Implemented Interfaces:
Iterable<T>,ChildIterable<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChildFilterprivate final Typeprivate final ServiceLocatorprivate final Stringprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionChildIterableImpl(ServiceLocator locator, Type childType, String prefix, String separator) -
Method Summary
Modifier and TypeMethodDescriptionGets the child with the given key.Returns an iterator of the children's Service Handle, rather than their servicesiterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
locator
-
childType
-
prefix
-
separator
-
baseFilter
-
-
Constructor Details
-
ChildIterableImpl
ChildIterableImpl(ServiceLocator locator, Type childType, String prefix, String separator)
-
-
Method Details
-
iterator
-
byKey
Description copied from interface:ChildIterableGets 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- Specified by:
byKeyin interfaceChildIterable<T>- Parameters:
key- The non-null key of the child to get- Returns:
- The child who has the given key
-
handleIterator
Description copied from interface:ChildIterableReturns an iterator of the children's Service Handle, rather than their services- Specified by:
handleIteratorin interfaceChildIterable<T>- Returns:
- the iterator
-