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 informations for the project.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create PluginContainer instances. -
Method Summary
Modifier and TypeMethodDescriptiongetLocation(Object key) Gets the location of the specified field in 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.
-
Method Details
-
getPlugins
The list of plugins to use.- Returns:
- a
List<Plugin>
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withPlugins
Creates a newPluginContainerinstance using the specified plugins.- Parameters:
plugins- the newCollection<Plugin>to use- Returns:
- a
PluginContainerwith the specified plugins
-
newInstance
Creates a newPluginContainerinstance. Equivalent tonewInstance(true).- Returns:
- a new
PluginContainer - See Also:
-
newInstance
Creates 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
-
newBuilder
Creates a newPluginContainerbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newPluginContainerbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newPluginContainerbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- thePluginContainerinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newPluginContainerbuilder instance using the specified object as a basis.- Parameters:
from- thePluginContainerinstance to use as a basisforceCopy- 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
-