public abstract class BaseHolder<T> extends AbstractLifeCycle implements Dumpable
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseHolder.Source |
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends T> |
_class |
protected String |
_className |
protected boolean |
_extInstance |
protected ServletHandler |
_servletHandler |
protected BaseHolder.Source |
_source |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseHolder(BaseHolder.Source source) |
| Modifier and Type | Method and Description |
|---|---|
void |
doStart() |
void |
doStop() |
String |
dump() |
void |
dump(Appendable out,
String indent) |
String |
getClassName() |
Class<? extends T> |
getHeldClass() |
ServletHandler |
getServletHandler() |
BaseHolder.Source |
getSource() |
protected void |
illegalStateIfContextStarted() |
void |
initialize()
Do any setup necessary after starting
|
boolean |
isInstance() |
void |
setClassName(String className) |
void |
setHeldClass(Class<? extends T> held) |
void |
setServletHandler(ServletHandler servletHandler) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stopprotected final BaseHolder.Source _source
protected String _className
protected boolean _extInstance
protected ServletHandler _servletHandler
protected BaseHolder(BaseHolder.Source source)
public BaseHolder.Source getSource()
public void initialize()
throws Exception
Exceptionpublic void doStart()
throws Exception
doStart in class AbstractLifeCycleExceptionpublic void doStop()
throws Exception
doStop in class AbstractLifeCycleException@ManagedAttribute(value="Class Name", readonly=true) public String getClassName()
public ServletHandler getServletHandler()
public void setServletHandler(ServletHandler servletHandler)
servletHandler - The ServletHandler that will handle requests dispatched to this servlet.public void setClassName(String className)
className - The className to set.protected void illegalStateIfContextStarted()
public boolean isInstance()
public void dump(Appendable out, String indent) throws IOException
dump in interface DumpableIOExceptionCopyright © 1995-2015 Webtide. All Rights Reserved.