@ManagedObject(value="Holder - a container for servlets and the like") public class Holder<T> extends BaseHolder<T>
Modifier and Type | Class and Description |
---|---|
protected class |
Holder.HolderConfig |
protected class |
Holder.HolderRegistration |
BaseHolder.Source
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
protected boolean |
_asyncSupported |
protected String |
_displayName |
protected Map<String,String> |
_initParams |
protected String |
_name |
_class, _className, _extInstance, _servletHandler, _source
Modifier | Constructor and Description |
---|---|
protected |
Holder(BaseHolder.Source source) |
Modifier and Type | Method and Description |
---|---|
void |
destroyInstance(Object instance) |
String |
dump() |
void |
dump(Appendable out,
String indent) |
String |
getDisplayName() |
String |
getInitParameter(String param) |
Enumeration<String> |
getInitParameterNames() |
Map<String,String> |
getInitParameters() |
String |
getName() |
boolean |
isAsyncSupported() |
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.
|
String |
toString() |
doStart, doStop, getClassName, getHeldClass, getServletHandler, getSource, illegalStateIfContextStarted, initialize, isInstance, setServletHandler
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
protected String _displayName
protected boolean _asyncSupported
protected String _name
protected Holder(BaseHolder.Source source)
@ManagedAttribute(value="Display Name", readonly=true) public String getDisplayName()
public Enumeration<String> getInitParameterNames()
@ManagedAttribute(value="Initial Parameters", readonly=true) public Map<String,String> getInitParameters()
@ManagedAttribute(value="Name", readonly=true) public String getName()
public void setClassName(String className)
setClassName
in class BaseHolder<T>
className
- The className to set.public void setHeldClass(Class<? extends T> held)
setHeldClass
in class BaseHolder<T>
held
- The class to holdpublic void setDisplayName(String name)
public void setName(String name)
name
- The name to set.public void setAsyncSupported(boolean suspendable)
public boolean isAsyncSupported()
public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
dump
in class BaseHolder<T>
IOException
public String dump()
dump
in interface Dumpable
dump
in class BaseHolder<T>
Copyright © 1995-2015 Webtide. All Rights Reserved.