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.AbstractLifeCycleListenerLifeCycle.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 |
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING| Modifier | Constructor and Description |
|---|---|
protected |
Holder(Holder.Source source) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyInstance(Object instance) |
void |
doStart() |
void |
doStop() |
String |
dump() |
void |
dump(Appendable out,
String indent) |
String |
getClassName() |
String |
getDisplayName() |
Class<? extends T> |
getHeldClass() |
String |
getInitParameter(String param) |
Enumeration |
getInitParameterNames() |
Map<String,String> |
getInitParameters() |
String |
getName() |
ServletHandler |
getServletHandler() |
Holder.Source |
getSource() |
protected void |
illegalStateIfContextStarted() |
boolean |
isAsyncSupported() |
boolean |
isInstance() |
void |
setAsyncSupported(boolean suspendable) |
void |
setClassName(String className) |
void |
setDisplayName(String name) |
void |
setHeldClass(Class<? extends T> held) |
void |
setInitParameter(String param,
String value) |
void |
setInitParameters(Map<String,String> map) |
void |
setName(String name)
The name is a primary key for the held object.
|
void |
setServletHandler(ServletHandler servletHandler) |
String |
toString() |
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopprotected 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 doStart()
throws Exception
doStart in class AbstractLifeCycleExceptionpublic void doStop()
throws Exception
doStop in class AbstractLifeCycleExceptionpublic String getClassName()
public String getDisplayName()
public Enumeration getInitParameterNames()
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 DumpableIOExceptionCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.