Class PluginContainer

java.lang.Object
org.apache.maven.model.PluginContainer
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker
Direct Known Subclasses:
PluginConfiguration, PluginManagement

public class PluginContainer extends Object implements Serializable, Cloneable, InputLocationTracker
Contains the plugins informations for the project.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • PluginContainer

      public PluginContainer()
  • Method Details

    • addPlugin

      public void addPlugin(Plugin plugin)
      Method addPlugin.
      Parameters:
      plugin - a plugin object.
    • clone

      public PluginContainer clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      PluginContainer
    • getLocation

      public InputLocation getLocation(Object key)
      Description copied from interface: InputLocationTracker
      Gets the location of the specified field in the input source.
      Specified by:
      getLocation in interface InputLocationTracker
      Parameters:
      key - a key object.
      Returns:
      InputLocation
    • setLocation

      public void setLocation(Object key, InputLocation location)
      Description copied from interface: InputLocationTracker
      Sets the location of the specified field.
      Specified by:
      setLocation in interface InputLocationTracker
      Parameters:
      key - a key object.
      location - a location object.
    • setOtherLocation

      public void setOtherLocation(Object key, InputLocation location)
      Parameters:
      key - a key object.
      location - a location object.
    • getPlugins

      public List<Plugin> getPlugins()
      Method getPlugins.
      Returns:
      List
    • removePlugin

      public void removePlugin(Plugin plugin)
      Method removePlugin.
      Parameters:
      plugin - a plugin object.
    • setPlugins

      public void setPlugins(List<Plugin> plugins)
      Set the list of plugins to use.
      Parameters:
      plugins - a plugins object.
    • flushPluginMap

      public void flushPluginMap()
      Reset the pluginsMap field to null
    • getPluginsAsMap

      public Map<String,Plugin> getPluginsAsMap()
      Returns:
      a Map of plugins field with Plugins#getKey() as key
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object