T
- the type of holderpublic abstract class BaseHolder<T> extends AbstractLifeCycle implements Dumpable
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<? extends T> |
_class |
protected java.lang.String |
_className |
protected boolean |
_extInstance |
protected ServletHandler |
_servletHandler |
protected Source |
_source |
Modifier | Constructor and Description |
---|---|
protected |
BaseHolder(Source source) |
Modifier and Type | Method and Description |
---|---|
void |
doStart() |
void |
doStop() |
java.lang.String |
dump() |
void |
dump(java.lang.Appendable out,
java.lang.String indent)
Dump this object (and children) into an Appendable using the provided indent after any new lines.
|
java.lang.String |
getClassName() |
java.lang.Class<? extends T> |
getHeldClass() |
ServletHandler |
getServletHandler() |
Source |
getSource() |
protected void |
illegalStateIfContextStarted() |
void |
initialize()
Do any setup necessary after starting
|
boolean |
isInstance() |
void |
setClassName(java.lang.String className) |
void |
setHeldClass(java.lang.Class<? extends T> held) |
void |
setServletHandler(ServletHandler servletHandler) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dump, dumpObject, dumpObjects, dumpSelf
protected final Source _source
protected transient java.lang.Class<? extends T> _class
protected java.lang.String _className
protected boolean _extInstance
protected ServletHandler _servletHandler
protected BaseHolder(Source source)
public Source getSource()
public void initialize() throws java.lang.Exception
java.lang.Exception
- if unable to initializepublic void doStart() throws java.lang.Exception
doStart
in class AbstractLifeCycle
java.lang.Exception
public void doStop() throws java.lang.Exception
doStop
in class AbstractLifeCycle
java.lang.Exception
@ManagedAttribute(value="Class Name", readonly=true) public java.lang.String getClassName()
public java.lang.Class<? extends T> getHeldClass()
public ServletHandler getServletHandler()
public void setServletHandler(ServletHandler servletHandler)
servletHandler
- The ServletHandler
that will handle requests dispatched to this servlet.public void setClassName(java.lang.String className)
className
- The className to set.public void setHeldClass(java.lang.Class<? extends T> held)
held
- The class to holdprotected void illegalStateIfContextStarted()
public boolean isInstance()
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
Dumpable
Copyright © 1995–2023 Webtide. All rights reserved.