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 ChildFilter
private final Type
private final ServiceLocator
private final String
private 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, wait
Methods 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: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 theChildInject.separator()
field- Specified by:
byKey
in 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:ChildIterable
Returns an iterator of the children's Service Handle, rather than their services- Specified by:
handleIterator
in interfaceChildIterable<T>
- Returns:
- the iterator
-