org.apache.maven.lifecycle
Class DefaultLifecycles

java.lang.Object
  extended by org.apache.maven.lifecycle.DefaultLifecycles

@Component(role=DefaultLifecycles.class)
public class DefaultLifecycles
extends Object

Since:
3.0
Author:
Jason van Zyl, Kristian Rosenvold

Field Summary
static String[] STANDARD_LIFECYCLES
           
 
Constructor Summary
DefaultLifecycles()
           
DefaultLifecycles(Map<String,Lifecycle> lifecycles, Logger logger)
           
 
Method Summary
 Lifecycle get(String key)
           
 String getLifecyclePhaseList()
           
 List<Lifecycle> getLifeCycles()
           
 Map<String,Lifecycle> getPhaseToLifecycleMap()
          We use this to map all phases to the lifecycle that contains it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STANDARD_LIFECYCLES

public static final String[] STANDARD_LIFECYCLES
Constructor Detail

DefaultLifecycles

public DefaultLifecycles()

DefaultLifecycles

public DefaultLifecycles(Map<String,Lifecycle> lifecycles,
                         Logger logger)
Method Detail

get

public Lifecycle get(String key)

getPhaseToLifecycleMap

public Map<String,Lifecycle> getPhaseToLifecycleMap()
We use this to map all phases to the lifecycle that contains it. This is used so that a user can specify the phase they want to execute and we can easily determine what lifecycle we need to run.

Returns:
A map of lifecycles, indexed on id

getLifeCycles

public List<Lifecycle> getLifeCycles()

getLifecyclePhaseList

public String getLifecyclePhaseList()


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