Package hudson.maven
Class PlexusModuleContributorFactory
- java.lang.Object
-
- hudson.maven.PlexusModuleContributorFactory
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class PlexusModuleContributorFactory extends Object implements ExtensionPoint
Contributes additional code into Plexus container when we run Maven.Injecting custom plexus components, such as
AbstractMavenLifecycleParticipant
, allows plugins to participate into the Maven internals more deeply.Lifecycle
PlexusModuleContributorFactory
s are instantiated as singletons on the controller, and whenever a new Maven process starts, itscreateFor(AbstractBuild)
method is called to instantiatePlexusModuleContributor
, which gets serialized on the controller, then deserialized inside the Maven process, and then itsPlexusModuleContributor.getPlexusComponentJars()
will be invoked to determine the additional classpaths. and then run.- Since:
- 1.521
- Author:
- Kohsuke Kawaguchi
- See Also:
PlexusModuleContributor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description PlexusModuleContributorFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static PlexusModuleContributor
aggregate(AbstractBuild<?,?> context)
Returns a singlePlexusModuleContributor
that aggregates all the registeredPlexusModuleContributor
s in the system.static ExtensionList<PlexusModuleContributorFactory>
all()
Returns all the registeredPlexusModuleContributor
s.abstract PlexusModuleContributor
createFor(AbstractBuild<?,?> context)
-
-
-
Method Detail
-
createFor
public abstract PlexusModuleContributor createFor(AbstractBuild<?,?> context) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
all
public static ExtensionList<PlexusModuleContributorFactory> all()
Returns all the registeredPlexusModuleContributor
s.
-
aggregate
public static PlexusModuleContributor aggregate(AbstractBuild<?,?> context) throws IOException, InterruptedException
Returns a singlePlexusModuleContributor
that aggregates all the registeredPlexusModuleContributor
s in the system. The instance is remoting portable.- Throws:
IOException
InterruptedException
-
-