Package org.codehaus.plexus.collections
Interface ActiveMap
- All Superinterfaces:
ActiveCollection,Map
- All Known Implementing Classes:
AbstractActiveMap,DefaultActiveMap
Type of
NOTE: All active collections are immutable, and will throw an
Map, which is backed by a PlexusContainer instance, and retrieves a
fresh batch of elements for each method call. Entries consist of
component-role-hint -> component-instance.
NOTE: All active collections are immutable, and will throw an
UnsupportedOperationException if a mutator method is called.-
Nested Class Summary
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckedContainsKey(Object key) Same asMap.containsKey(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancheckedContainsValue(Object value) Same asMap.containsValue(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.Same asMap.entrySet(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.checkedGet(Object key) Same asMap.get(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.Same asMap#keySet(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.Same asMap#values(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.Methods inherited from interface org.codehaus.plexus.collections.ActiveCollection
checkedIsEmpty, checkedSize, getRole, isEmpty, sizeMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
ROLE
-
-
Method Details
-
checkedContainsKey
boolean checkedContainsKey(Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asMap.containsKey(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedContainsValue
boolean checkedContainsValue(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asMap.containsValue(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedEntrySet
Set checkedEntrySet() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame asMap.entrySet(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedGet
Object checkedGet(Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asMap.get(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedKeySet
Set checkedKeySet() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame asMap#keySet(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedValues
Collection checkedValues() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame asMap#values(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-