Package org.apache.maven.api.model
Class PluginContainer
java.lang.Object
org.apache.maven.api.model.PluginContainer
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
- Direct Known Subclasses:
- PluginConfiguration,- PluginManagement
@Experimental
@Generated
@ThreadSafe
@Immutable
public class PluginContainer
extends Object
implements Serializable, InputLocationTracker
Contains the plugins information for the project.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create PluginContainer instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedPluginContainer(PluginContainer.Builder builder) Constructor for this class, to be called from its subclasses andPluginContainer.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionGets the input location that caused this model to be read.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.The list of plugins to use.static PluginContainer.BuilderCreates a newPluginContainerbuilder instance.static PluginContainer.BuildernewBuilder(boolean withDefaults) Creates a newPluginContainerbuilder instance using default values or not.static PluginContainer.BuildernewBuilder(PluginContainer from) Creates a newPluginContainerbuilder instance using the specified object as a basis.static PluginContainer.BuildernewBuilder(PluginContainer from, boolean forceCopy) Creates a newPluginContainerbuilder instance using the specified object as a basis.static PluginContainerCreates a newPluginContainerinstance.static PluginContainernewInstance(boolean withDefaults) Creates a newPluginContainerinstance using default values or not.toString()with()Creates a new builder with this object as the basis.withPlugins(Collection<Plugin> plugins) Creates a newPluginContainerinstance using the specified plugins.
- 
Constructor Details- 
PluginContainerConstructor for this class, to be called from its subclasses andPluginContainer.Builder.- See Also:
 
 
- 
- 
Method Details- 
getPluginsThe list of plugins to use.- Returns:
- a List<Plugin>
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
getLocationKeysGets the keys of the locations of the input source.
- 
getLocationKeyStream
- 
getImportedFromGets the input location that caused this model to be read.- Specified by:
- getImportedFromin interface- InputLocationTracker
- Returns:
- InputLocation
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withPluginsCreates a newPluginContainerinstance using the specified plugins.- Parameters:
- plugins- the new- Collection<Plugin>to use
- Returns:
- a PluginContainerwith the specified plugins
 
- 
newInstanceCreates a newPluginContainerinstance. Equivalent tonewInstance(true).- Returns:
- a new PluginContainer
- See Also:
 
- 
newInstanceCreates a newPluginContainerinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new PluginContainer
 
- 
newBuilderCreates a newPluginContainerbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newPluginContainerbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPluginContainerbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- PluginContainerinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPluginContainerbuilder instance using the specified object as a basis.- Parameters:
- from- the- PluginContainerinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
getPluginsAsMap- Returns:
- a Map of plugins field with Plugins#getKey()as key
- See Also:
 
- 
toString
 
-