Package org.eclipse.jetty.ee10.servlet
Class Holder<T>
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.ee10.servlet.BaseHolder<T>
org.eclipse.jetty.ee10.servlet.Holder<T>
- Type Parameters:
T
- the type of holder
- Direct Known Subclasses:
FilterHolder
,ServletHolder
@ManagedObject("Holder - a container for servlets and the like")
public abstract class Holder<T>
extends BaseHolder<T>
Holder
Specialization of AbstractHolder for servlet-related classes that
have init-params etc
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroyInstance
(Object instance) dump()
getInitParameter
(String param) getName()
boolean
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) protected void
setInstance
(T instance) void
The name is a primary key for the held object.toString()
Methods inherited from class org.eclipse.jetty.ee10.servlet.BaseHolder
createInstance, doStart, doStop, dump, getClassName, getHeldClass, getInstance, getServletContext, getServletContextHandler, getServletHandler, getSource, illegalStateIfContextStarted, initialize, isInstance, setServletHandler, unwrap, wrap
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop
-
Constructor Details
-
Holder
-
-
Method Details
-
getDisplayName
-
getInitParameter
-
getInitParameterNames
-
getInitParameters
-
getName
-
setInstance
- Overrides:
setInstance
in classBaseHolder<T>
-
destroyInstance
- Throws:
Exception
-
setClassName
- Overrides:
setClassName
in classBaseHolder<T>
- Parameters:
className
- The className to set.
-
setHeldClass
- Overrides:
setHeldClass
in classBaseHolder<T>
- Parameters:
held
- The class to hold
-
setDisplayName
-
setInitParameter
-
setInitParameters
-
setName
The name is a primary key for the held object. Ensure that the name is set BEFORE adding a Holder (eg ServletHolder or FilterHolder) to a ServletHandler.- Parameters:
name
- The name to set.
-
setAsyncSupported
public void setAsyncSupported(boolean suspendable) -
isAsyncSupported
public boolean isAsyncSupported() -
dump
- Specified by:
dump
in interfaceDumpable
- Overrides:
dump
in classBaseHolder<T>
-
toString
- Overrides:
toString
in classAbstractLifeCycle
-