@ManagedObject(value="Holder - a container for servlets and the like") public class Holder<T> extends AbstractLifeCycle implements Dumpable
Modifier and Type | Class and Description |
---|---|
protected class |
Holder.HolderConfig |
protected class |
Holder.HolderRegistration |
static class |
Holder.Source |
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
protected boolean |
_asyncSupported |
protected Class<? extends T> |
_class |
protected String |
_className |
protected String |
_displayName |
protected boolean |
_extInstance |
protected Map<String,String> |
_initParams |
protected String |
_name |
protected ServletHandler |
_servletHandler |
Modifier | Constructor and Description |
---|---|
protected |
Holder(Holder.Source source) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
protected String _className
protected String _displayName
protected boolean _extInstance
protected boolean _asyncSupported
protected String _name
protected ServletHandler _servletHandler
protected Holder(Holder.Source source)
public Holder.Source getSource()
public boolean isInstance()
public void initialize() throws Exception
Exception
public 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()
@ManagedAttribute(value="Display Name", readonly=true) public String getDisplayName()
public Enumeration getInitParameterNames()
@ManagedAttribute(value="Initial Parameters", readonly=true) public Map<String,String> getInitParameters()
@ManagedAttribute(value="Name", readonly=true) public String getName()
public ServletHandler getServletHandler()
public void setClassName(String className)
className
- The className to set.public void setDisplayName(String name)
public void setName(String name)
name
- The name to set.public void setServletHandler(ServletHandler servletHandler)
servletHandler
- The ServletHandler
that will handle requests dispatched to this servlet.public void setAsyncSupported(boolean suspendable)
public boolean isAsyncSupported()
protected void illegalStateIfContextStarted()
public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
IOException
Copyright © 1995-2019 Mort Bay Consulting. All Rights Reserved.