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