| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final ServiceLocatorImpl | |
| private final Injectee | |
| private final Set | |
| private final Type | |
| private final Unqualified |
| Access | Constructor and Description |
|---|---|
| pack-priv | IterableProviderImpl(ServiceLocatorImpl locator, Type requiredType, Set<Annotation> requiredQualifiers, Unqualified unqualified, Injectee originalInjectee, boolean isIterable)
|
| Modifier and Type | Method and Description |
|---|---|
| public T | get()
Implements jakarta. Provides a fully-constructed and injected instance of |
| public ServiceHandle | getHandle()
Implements org. Rather than getting the service directly with get (in which case the returned service cannot be disposed of) this method will instead return a service handle for the current best service. |
| public int | getSize()
Implements org. Returns the size of the iterator that would be returned |
| public Iterable | handleIterator()
Implements org. This version of iterator returns an iterator of ServiceHandles rather than returning the services (which then have no way to be properly destroyed) |
| public Iterator | |
| private void | |
| public IterableProvider | named(String name)
Implements org. Returns an IterableProvider that is further qualified with the given name |
| public <U> IterableProvider | ofType(Type type)
Implements org. Returns an IterableProvider that is of the given type. |
| public IterableProvider | qualifiedWith(Annotation... qualifiers)
Implements org. A set of qualifiers to further restrict this iterator to. |
| public String |
| isIterable | back to summary |
|---|---|
| private final boolean isIterable | |
| locator | back to summary |
|---|---|
| private final ServiceLocatorImpl locator | |
| originalInjectee | back to summary |
|---|---|
| private final Injectee originalInjectee | |
| requiredQualifiers | back to summary |
|---|---|
| private final Set<Annotation> requiredQualifiers | |
| requiredType | back to summary |
|---|---|
| private final Type requiredType | |
| unqualified | back to summary |
|---|---|
| private final Unqualified unqualified | |
| IterableProviderImpl | back to summary |
|---|---|
| pack-priv IterableProviderImpl(ServiceLocatorImpl locator, Type requiredType, Set<Annotation> requiredQualifiers, Unqualified unqualified, Injectee originalInjectee, boolean isIterable) | |
| get | back to summary |
|---|---|
| public T get() Implements jakarta. Doc from jakarta. Provides a fully-constructed and injected instance of
| |
| getHandle | back to summary |
|---|---|
| public ServiceHandle Implements org. Doc from org. Rather than getting the service directly with get (in which case the returned service cannot be disposed of) this method will instead return a service handle for the current best service.
| |
| getSize | back to summary |
|---|---|
| public int getSize() Implements org. Doc from org. Returns the size of the iterator that would be returned
| |
| handleIterator | back to summary |
|---|---|
| public Iterable Implements org. Doc from org. This version of iterator returns an iterator of ServiceHandles rather than returning the services (which then have no way to be properly destroyed)
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| justInTime | back to summary |
|---|---|
| private void justInTime() | |
| named | back to summary |
|---|---|
| public IterableProvider Implements org. Doc from org. Returns an IterableProvider that is further qualified with the given name
| |
| ofType | back to summary |
|---|---|
| public <U> IterableProvider Implements org. Doc from org. Returns an IterableProvider that is of the given type. This type must be one of the type safe contracts of the original iterator
| |
| qualifiedWith | back to summary |
|---|---|
| public IterableProvider Implements org. Doc from org. A set of qualifiers to further restrict this iterator to.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator |
| handles | back to summary |
|---|---|
| private final List<ServiceHandle<U>> handles | |
| HandleIterable | back to summary |
|---|---|
| private HandleIterable(List<ServiceHandle<U>> handles) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| Modifier and Type | Field and Description |
|---|---|
| private final LinkedList |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public ServiceHandle | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| handles | back to summary |
|---|---|
| private final LinkedList<ServiceHandle<U>> handles | |
| MyHandleIterator | back to summary |
|---|---|
| private MyHandleIterator(List<ServiceHandle<U>> handles) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public ServiceHandle Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final LinkedList |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public U | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| handles | back to summary |
|---|---|
| private final LinkedList<ServiceHandle<U>> handles | |
| MyIterator | back to summary |
|---|---|
| private MyIterator(List<ServiceHandle<U>> handles) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public U next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |