org.apache.maven.model
Class PluginContainer

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
PluginContainer()
           
 
Method Summary
 void addPlugin(Plugin plugin)
          Method addPlugin.
 PluginContainer clone()
          Method clone.
 void flushPluginMap()
          Reset the pluginsMap field to null
 InputLocation getLocation(Object key)
          Gets the location of the specified field in the input source.
 List<Plugin> getPlugins()
          Method getPlugins.
 Map<String,Plugin> getPluginsAsMap()
           
 void removePlugin(Plugin plugin)
          Method removePlugin.
 void setLocation(Object key, InputLocation location)
          Sets the location of the specified field.
 void setPlugins(List<Plugin> plugins)
          Set the list of plugins to use.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginContainer

public PluginContainer()
Method Detail

addPlugin

public void addPlugin(Plugin plugin)
Method addPlugin.

Parameters:
plugin -

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 -
Returns:
InputLocation

getPlugins

public List<Plugin> getPlugins()
Method getPlugins.

Returns:
List

removePlugin

public void removePlugin(Plugin plugin)
Method removePlugin.

Parameters:
plugin -

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 -
location -

setPlugins

public void setPlugins(List<Plugin> plugins)
Set the list of plugins to use.

Parameters:
plugins -

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:
Plugin.getKey()


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.