com.dyuproject.web.rest.service
Class AbstractService

java.lang.Object
  extended by com.dyuproject.web.rest.service.AbstractService
All Implemented Interfaces:
Service
Direct Known Subclasses:
HelloWorldService, MainService, TodoService, UserService

public abstract class AbstractService
extends Object
implements Service

Base service to handle requests

Author:
David Yu

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

Constructor Detail

AbstractService

public AbstractService()
Method Detail

getWebContext

public WebContext getWebContext()

isInitialized

protected boolean isInitialized()

init

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

destroy

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

init

protected abstract void init()

destroy

protected void destroy()


Copyright © 2013. All Rights Reserved.