wt.change2
Class DefaultChooseLifeCycleDelegate

java.lang.Object
  extended by wt.change2.DefaultChooseLifeCycleDelegate
All Implemented Interfaces:
Externalizable, Serializable, ChooseLifeCycleDelegate, wt.services.applicationcontext.ApplicationContextChild

public class DefaultChooseLifeCycleDelegate
extends Object
implements ChooseLifeCycleDelegate, wt.services.applicationcontext.ApplicationContextChild, Externalizable

The default delegate for choosing a LifeCycle. This delegate looks in section 7 of the change2.properties file for the name of the LifeCycle that a particular type is paired with and returns that LifeCycleTemplate.

Supported API: true

Extendable: true

See Also:
ChooseLifeCycleDelegate, Serialized Form

Method Summary
 wt.lifecycle.LifeCycleTemplate chooseLifeCycle(wt.lifecycle.LifeCycleManaged object)
          Returns the LifeCycleTemplate for the given object using services.properties.
 String getLifeCycleChoice(wt.lifecycle.LifeCycleManaged object)
          Returns the LifeCycleTemplate for the given object using services.properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

chooseLifeCycle

public wt.lifecycle.LifeCycleTemplate chooseLifeCycle(wt.lifecycle.LifeCycleManaged object)
                                               throws WTException
Returns the LifeCycleTemplate for the given object using services.properties.

Supported API: true

Specified by:
chooseLifeCycle in interface ChooseLifeCycleDelegate
Parameters:
object -
Returns:
LifeCycleTemplate
Throws:
WTException

getLifeCycleChoice

public String getLifeCycleChoice(wt.lifecycle.LifeCycleManaged object)
                          throws WTException
Returns the LifeCycleTemplate for the given object using services.properties.

Supported API: true

Specified by:
getLifeCycleChoice in interface ChooseLifeCycleDelegate
Parameters:
object -
Returns:
String
Throws:
WTException