org.apache.maven.lifecycle.binding
Interface MojoBindingFactory

All Known Implementing Classes:
DefaultMojoBindingFactory

public interface MojoBindingFactory

Responsible for constructing or parsing MojoBinding instances from one of several sources, potentially using the PluginLoader to resolve any plugin prefixes first.

Author:
jdcasey

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 MojoBinding createMojoBinding(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String goal, MavenProject project)
          Create a new MojoBinding instance with the specified information, and inject POM configurations appropriate to that mojo before returning it.
 MojoBinding parseMojoBinding(java.lang.String bindingSpec)
          Simplified version of parseMojoBinding(String, MavenProject, MavenSession, boolean) which assumes the project is null and prefixes are not allowed.
 MojoBinding parseMojoBinding(java.lang.String bindingSpec, MavenProject project)
          Simplified version of parseMojoBinding(String, MavenProject, MavenSession, boolean) which assumes that prefixes are not allowed.
 MojoBinding parseMojoBinding(java.lang.String bindingSpec, MavenProject project, MavenSession session, boolean allowPrefixReference)
          Parse the specified mojo string into a MojoBinding, optionally allowing plugin-prefix references.
 

Field Detail

ROLE

static final java.lang.String ROLE
Method Detail

parseMojoBinding

MojoBinding parseMojoBinding(java.lang.String bindingSpec,
                             MavenProject project,
                             MavenSession session,
                             boolean allowPrefixReference)
                             throws LifecycleSpecificationException,
                                    LifecycleLoaderException
Parse the specified mojo string into a MojoBinding, optionally allowing plugin-prefix references. If a plugin-prefix is allowed and used, resolve the prefix and use the resulting PluginDescriptor to set groupId and artifactId on the MojoBinding instance.

Throws:
LifecycleSpecificationException
LifecycleLoaderException

createMojoBinding

MojoBinding createMojoBinding(java.lang.String groupId,
                              java.lang.String artifactId,
                              java.lang.String version,
                              java.lang.String goal,
                              MavenProject project)
Create a new MojoBinding instance with the specified information, and inject POM configurations appropriate to that mojo before returning it.


parseMojoBinding

MojoBinding parseMojoBinding(java.lang.String bindingSpec)
                             throws LifecycleSpecificationException
Simplified version of parseMojoBinding(String, MavenProject, MavenSession, boolean) which assumes the project is null and prefixes are not allowed. This method will never result in the PluginLoader being used to resolve the PluginDescriptor.

Throws:
LifecycleSpecificationException

parseMojoBinding

MojoBinding parseMojoBinding(java.lang.String bindingSpec,
                             MavenProject project)
                             throws LifecycleSpecificationException
Simplified version of parseMojoBinding(String, MavenProject, MavenSession, boolean) which assumes that prefixes are not allowed. This method will never result in the PluginLoader being used to resolve the PluginDescriptor.

Throws:
LifecycleSpecificationException


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.