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 Link icon

    • PluginContainer Link icon

      public PluginContainer()
  • Method Details Link icon

    • addPlugin Link icon

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

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

      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 Link icon

      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 Link icon

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

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

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object