com.dyuproject.web.rest
Class AbstractLifeCycle

java.lang.Object
  extended by com.dyuproject.web.rest.AbstractLifeCycle
All Implemented Interfaces:
LifeCycle
Direct Known Subclasses:
AbstractConsumer, AbstractInterceptor, AbstractService, ConsumerInterceptor, DefaultDispatcher, EntityManagerManager, InterceptorCollection, JSPDispatcher, PathHandler, StringTemplateDispatcher, VelocityDispatcher, WrapperInterceptor

public abstract class AbstractLifeCycle
extends Object
implements LifeCycle

Base lifecycle that handles the initialized and destroyed state.

Author:
David Yu
Date created:
Jan 18, 2009

Constructor Summary
AbstractLifeCycle()
           
 
Method Summary
protected  void destroy()
           
 void destroy(WebContext webContext)
           
 WebContext getWebContext()
           
protected abstract  void init()
           
 void init(WebContext webContext)
           
 boolean isDestroyed()
           
 boolean isInitialized()
           
static Object newObjectInstance(String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLifeCycle

public AbstractLifeCycle()
Method Detail

init

public final void init(WebContext webContext)
Specified by:
init in interface LifeCycle

isInitialized

public final boolean isInitialized()

isDestroyed

public final boolean isDestroyed()

destroy

public final void destroy(WebContext webContext)
Specified by:
destroy in interface LifeCycle

init

protected abstract void init()

destroy

protected void destroy()

getWebContext

public final WebContext getWebContext()

newObjectInstance

public static Object newObjectInstance(String className)
                                throws Exception
Throws:
Exception


Copyright © 2008-2013. All Rights Reserved.