Package org.codehaus.plexus.collections
Interface ActiveMap
-
- All Superinterfaces:
ActiveCollection,java.util.Map
- All Known Implementing Classes:
AbstractActiveMap,DefaultActiveMap
public interface ActiveMap extends ActiveCollection, java.util.Map
Type ofMap, which is backed by aPlexusContainerinstance, 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 anUnsupportedOperationExceptionif a mutator method is called.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckedContainsKey(java.lang.Object key)Same asMap.containsKey(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancheckedContainsValue(java.lang.Object value)Same asMap.containsValue(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.util.SetcheckedEntrySet()Same asMap.entrySet(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.lang.ObjectcheckedGet(java.lang.Object key)Same asMap.get(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.util.SetcheckedKeySet()Same asMap#keySet(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.util.CollectioncheckedValues()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, size
-
-
-
-
Method Detail
-
checkedContainsKey
boolean checkedContainsKey(java.lang.Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame 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(java.lang.Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame 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
java.util.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
java.lang.Object checkedGet(java.lang.Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame 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
java.util.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
java.util.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.
-
-