Package org.codehaus.plexus.collections
Class AbstractActiveMap
- java.lang.Object
-
- org.codehaus.plexus.collections.AbstractActiveMap
-
- All Implemented Interfaces:
java.util.Map,ActiveCollection,ActiveMap,org.codehaus.plexus.logging.LogEnabled,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Direct Known Subclasses:
DefaultActiveMap
public abstract class AbstractActiveMap extends java.lang.Object implements ActiveMap, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractActiveMap()protectedAbstractActiveMap(org.codehaus.plexus.PlexusContainer container, java.lang.String role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.MapcheckedGetMap()voidclear()voidcontextualize(org.codehaus.plexus.context.Context context)voidenableLogging(org.codehaus.plexus.logging.Logger logger)protected org.codehaus.plexus.logging.LoggergetLogger()protected java.util.MapgetMap()java.lang.StringgetRole()Retrive the role, or type of component, which is collected in the current instance.java.lang.Objectput(java.lang.Object arg0, java.lang.Object arg1)voidputAll(java.util.Map arg0)java.lang.Objectremove(java.lang.Object key)protected voidsetRole(java.lang.String role)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.plexus.collections.ActiveCollection
checkedIsEmpty, checkedSize, isEmpty, size
-
Methods inherited from interface org.codehaus.plexus.collections.ActiveMap
checkedContainsKey, checkedContainsValue, checkedEntrySet, checkedGet, checkedKeySet, checkedValues
-
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map
-
put
public java.lang.Object put(java.lang.Object arg0, java.lang.Object arg1)- Specified by:
putin interfacejava.util.Map
-
putAll
public void putAll(java.util.Map arg0)
- Specified by:
putAllin interfacejava.util.Map
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
removein interfacejava.util.Map
-
getLogger
protected final org.codehaus.plexus.logging.Logger getLogger()
-
getMap
protected final java.util.Map getMap()
-
checkedGetMap
protected final java.util.Map checkedGetMap() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
getRole
public final java.lang.String getRole()
Description copied from interface:ActiveCollectionRetrive the role, or type of component, which is collected in the current instance. The current collection will only "contain" elements that specify this role in their component definitions.- Specified by:
getRolein interfaceActiveCollection
-
setRole
protected final void setRole(java.lang.String role)
-
contextualize
public final void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException- Specified by:
contextualizein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable- Throws:
org.codehaus.plexus.context.ContextException
-
enableLogging
public final void enableLogging(org.codehaus.plexus.logging.Logger logger)
- Specified by:
enableLoggingin interfaceorg.codehaus.plexus.logging.LogEnabled
-
-