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 TypeMethodDescriptionvoidMethod addPlugin.clone()Method clone.voidReset thepluginsMapfield tonullgetLocation(Object key) Gets the location of the specified field in the input source.Method getPlugins.voidremovePlugin(Plugin plugin) Method removePlugin.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetOtherLocation(Object key, InputLocation location) voidsetPlugins(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:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key- a key object.- Returns:
- InputLocation
-
setLocation
Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin 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 thepluginsMapfield tonull -
getPluginsAsMap
- Returns:
- a Map of plugins field with
Plugins#getKey()as key - See Also:
-
toString
-