T
- the type of holderpublic abstract class BaseHolder<T> extends AbstractLifeCycle implements Dumpable
Modifier and Type | Class and Description |
---|---|
static class |
BaseHolder.Source |
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.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, stop
protected 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
Exception
- if unable to initializepublic void doStart() throws Exception
doStart
in class AbstractLifeCycle
Exception
public void doStop() throws Exception
doStop
in class AbstractLifeCycle
Exception
@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 Dumpable
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.