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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method addPlugin.clone()
Method clone.void
Reset thepluginsMap
field tonull
getLocation
(Object key) Gets the ___location of the specified field in the input source.Method getPlugins.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.toString()
-
Constructor Details
-
PluginContainer
public PluginContainer()
-
-
Method Details
-
addPlugin
Method addPlugin.- Parameters:
plugin
- a plugin object.
-
clone
Method clone. -
getLocation
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
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
- Parameters:
key
- a key object.___location
- a ___location object.
-
getPlugins
Method getPlugins.- Returns:
- List
-
removePlugin
Method removePlugin.- Parameters:
plugin
- a plugin object.
-
setPlugins
Set the list of plugins to use.- Parameters:
plugins
- a plugins object.
-
flushPluginMap
public void flushPluginMap()Reset thepluginsMap
field tonull
-
getPluginsAsMap
- Returns:
- a Map of plugins field with
Plugins#getKey()
as key - See Also:
-
toString
-