org.apache.maven.lifecycle.statemgmt
Class StateManagementUtils

java.lang.Object
  extended by org.apache.maven.lifecycle.statemgmt.StateManagementUtils

public final class StateManagementUtils
extends java.lang.Object

Constructs and matches MojoBinding instances that refer to the forked-execution context manager mojos.

Author:
jdcasey

Field Summary
static java.lang.String ARTIFACT_ID
           
static java.lang.String CLEAR_FORKED_EXECUTION_GOAL
           
static java.lang.String END_FORKED_EXECUTION_GOAL
           
static java.lang.String GROUP_ID
           
static java.lang.String RESOLVE_LATE_BOUND_PLUGIN_GOAL
           
static java.lang.String START_FORKED_EXECUTION_GOAL
           
static java.lang.String VERSION
           
 
Method Summary
static MojoBinding createClearForkedExecutionMojoBinding()
          Create a new MojoBinding instance that refers to the internal mojo used to cleanup a completed forked-execution context.
static MojoBinding createEndForkedExecutionMojoBinding()
          Create a new MojoBinding instance that refers to the internal mojo used to end a forked-execution context.
static MojoBinding createResolveLateBoundMojoBinding(MojoBinding lateBound)
          Create a new MojoBinding instance that refers to the internal mojo used to resolve a late-bound plugin just before it is to be used.
static MojoBinding createStartForkedExecutionMojoBinding()
          Create a new MojoBinding instance that refers to the internal mojo used to setup a new forked-execution context.
static boolean isForkedExecutionClearMarker(MojoBinding binding)
          Return true if the specified MojoBinding refers to the internal mojo used to clean up a completed forked-execution context.
static boolean isForkedExecutionEndMarker(MojoBinding binding)
          Return true if the specified MojoBinding refers to the internal mojo used to end a forked-execution context.
static boolean isForkedExecutionStartMarker(MojoBinding binding)
          Return true if the specified MojoBinding refers to the internal mojo used to setup a new forked-execution context.
static boolean isResolveLateBoundMojoBinding(MojoBinding binding)
          Return true if the specified MojoBinding refers to the internal mojo used to resolve a late-bound mojo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_ID

public static final java.lang.String GROUP_ID
See Also:
Constant Field Values

ARTIFACT_ID

public static final java.lang.String ARTIFACT_ID
See Also:
Constant Field Values

END_FORKED_EXECUTION_GOAL

public static final java.lang.String END_FORKED_EXECUTION_GOAL
See Also:
Constant Field Values

START_FORKED_EXECUTION_GOAL

public static final java.lang.String START_FORKED_EXECUTION_GOAL
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values

CLEAR_FORKED_EXECUTION_GOAL

public static final java.lang.String CLEAR_FORKED_EXECUTION_GOAL
See Also:
Constant Field Values

RESOLVE_LATE_BOUND_PLUGIN_GOAL

public static final java.lang.String RESOLVE_LATE_BOUND_PLUGIN_GOAL
See Also:
Constant Field Values
Method Detail

createStartForkedExecutionMojoBinding

public static MojoBinding createStartForkedExecutionMojoBinding()
Create a new MojoBinding instance that refers to the internal mojo used to setup a new forked-execution context. Also, set the configuration to contain the forkId for this new context.


createEndForkedExecutionMojoBinding

public static MojoBinding createEndForkedExecutionMojoBinding()
Create a new MojoBinding instance that refers to the internal mojo used to end a forked-execution context. Also, set the configuration to contain the forkId for this new context.


createClearForkedExecutionMojoBinding

public static MojoBinding createClearForkedExecutionMojoBinding()
Create a new MojoBinding instance that refers to the internal mojo used to cleanup a completed forked-execution context. Also, set the configuration to contain the forkId for this new context.


isForkedExecutionStartMarker

public static boolean isForkedExecutionStartMarker(MojoBinding binding)
Return true if the specified MojoBinding refers to the internal mojo used to setup a new forked-execution context. This is useful for formatting when listing the build plan, when expression of these actual mojo names isn't necessarily useful, and can be confusing.


isForkedExecutionEndMarker

public static boolean isForkedExecutionEndMarker(MojoBinding binding)
Return true if the specified MojoBinding refers to the internal mojo used to end a forked-execution context. This is useful for formatting when listing the build plan, when expression of these actual mojo names isn't necessarily useful, and can be confusing.


isForkedExecutionClearMarker

public static boolean isForkedExecutionClearMarker(MojoBinding binding)
Return true if the specified MojoBinding refers to the internal mojo used to clean up a completed forked-execution context. This is useful for formatting when listing the build plan, when expression of these actual mojo names isn't necessarily useful, and can be confusing.


createResolveLateBoundMojoBinding

public static MojoBinding createResolveLateBoundMojoBinding(MojoBinding lateBound)
Create a new MojoBinding instance that refers to the internal mojo used to resolve a late-bound plugin just before it is to be used. Also, set the configuration to contain the parameters necessary for this resolution.


isResolveLateBoundMojoBinding

public static boolean isResolveLateBoundMojoBinding(MojoBinding binding)
Return true if the specified MojoBinding refers to the internal mojo used to resolve a late-bound mojo. This is useful for formatting when listing the build plan, when expression of these actual mojo names isn't necessarily useful, and can be confusing.



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