Package org.apache.maven.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPlugin(Plugin plugin)
Method addPlugin.PluginContainer
clone()
Method clone.void
flushPluginMap()
Reset thepluginsMap
field tonull
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
setOtherLocation(Object key, InputLocation location)
void
setPlugins(List<Plugin> plugins)
Set the list of plugins to use.String
toString()
-
-
-
Method Detail
-
addPlugin
public void addPlugin(Plugin plugin)
Method addPlugin.- Parameters:
plugin
- a plugin object.
-
clone
public PluginContainer clone()
Method clone.
-
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 interfaceInputLocationTracker
- 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 interfaceInputLocationTracker
- 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.
-
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 thepluginsMap
field tonull
-
getPluginsAsMap
public Map<String,Plugin> getPluginsAsMap()
- Returns:
- a Map of plugins field with
Plugins#getKey()
as key - See Also:
Plugin.getKey()
-
-