java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.servlet.BaseHolder<T>
org.eclipse.jetty.servlet.Holder<T>
- Type Parameters:
T- the type of holder
- All Implemented Interfaces:
org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.LifeCycle
- 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
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroyInstance(Object instance) dump()getInitParameter(String param) getName()booleanvoidsetAsyncSupported(boolean suspendable) voidsetClassName(String className) voidsetDisplayName(String name) voidsetHeldClass(Class<? extends T> held) voidsetInitParameter(String param, String value) voidsetInitParameters(Map<String, String> map) protected voidsetInstance(T instance) voidThe name is a primary key for the held object.toString()Methods inherited from class org.eclipse.jetty.servlet.BaseHolder
createInstance, doStart, doStop, dump, getClassName, getHeldClass, getInstance, getServletContext, getServletHandler, getSource, illegalStateIfContextStarted, initialize, isInstance, setServletHandler, unwrap, wrapMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelf
-
Constructor Details
-
Holder
-
-
Method Details
-
getDisplayName
-
getInitParameter
-
getInitParameterNames
-
getInitParameters
-
getName
-
setInstance
- Overrides:
setInstancein classBaseHolder<T>
-
destroyInstance
- Throws:
Exception
-
setClassName
- Overrides:
setClassNamein classBaseHolder<T>- Parameters:
className- The className to set.
-
setHeldClass
- Overrides:
setHeldClassin 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:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Overrides:
dumpin classBaseHolder<T>
-
toString
- Overrides:
toStringin classorg.eclipse.jetty.util.component.AbstractLifeCycle
-