com.dyuproject.web.rest
Class AbstractLifeCycle
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLifeCycle
public AbstractLifeCycle()
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.