Class AbstractActiveMap

java.lang.Object
org.codehaus.plexus.collections.AbstractActiveMap
All Implemented Interfaces:
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 Object implements ActiveMap, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled
  • Field Details

    • role

      private String role
    • container

      private org.codehaus.plexus.PlexusContainer container
    • logger

      private org.codehaus.plexus.logging.Logger logger
  • Constructor Details

    • AbstractActiveMap

      protected AbstractActiveMap()
    • AbstractActiveMap

      protected AbstractActiveMap(org.codehaus.plexus.PlexusContainer container, String role)
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in interface Map
    • put

      public Object put(Object arg0, Object arg1)
      Specified by:
      put in interface Map
    • putAll

      public void putAll(Map arg0)
      Specified by:
      putAll in interface Map
    • remove

      public Object remove(Object key)
      Specified by:
      remove in interface Map
    • getLogger

      protected final org.codehaus.plexus.logging.Logger getLogger()
    • getMap

      protected final Map getMap()
    • checkedGetMap

      protected final Map checkedGetMap() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • getRole

      public final String getRole()
      Description copied from interface: ActiveCollection
      Retrive 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:
      getRole in interface ActiveCollection
    • setRole

      protected final void setRole(String role)
    • contextualize

      public final void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
      Specified by:
      contextualize in interface org.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:
      enableLogging in interface org.codehaus.plexus.logging.LogEnabled