Package org.eclipse.jetty.annotations
Class AnnotationConfiguration.DiscoveredServletContainerInitializerHolder
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.servlet.BaseHolder<jakarta.servlet.ServletContainerInitializer>
org.eclipse.jetty.servlet.ServletContainerInitializerHolder
org.eclipse.jetty.annotations.AnnotationConfiguration.DiscoveredServletContainerInitializerHolder
- Enclosing class:
- AnnotationConfiguration
public static class AnnotationConfiguration.DiscoveredServletContainerInitializerHolder
extends ServletContainerInitializerHolder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.servlet.ServletContainerInitializerHolder
ServletContainerInitializerHolder.WrapFunction, ServletContainerInitializerHolder.Wrapper
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
Fields inherited from class org.eclipse.jetty.servlet.ServletContainerInitializerHolder
__pattern, _startupClasses, _startupClassNames
-
Constructor Summary
ConstructorDescriptionDiscoveredServletContainerInitializerHolder
(Source source, jakarta.servlet.ServletContainerInitializer sci, Class<?>... startupClasses) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStartupClasses
(Class<?>... clazzes) Classes that are listed in @HandlesTypes and found by the createServletContainerInitializerAnnotationHandlers method.void
addStartupClasses
(String... names) Classes that have annotations that are listed in @HandlesTypes are discovered by the ContainerInitializerAnnotationHandler and added here.Methods inherited from class org.eclipse.jetty.servlet.ServletContainerInitializerHolder
doStart, fromString, toString
Methods inherited from class org.eclipse.jetty.servlet.BaseHolder
createInstance, doStop, dump, dump, getClassName, getHeldClass, getInstance, getServletContext, getServletHandler, getSource, illegalStateIfContextStarted, initialize, isInstance, setClassName, setHeldClass, setInstance, 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
-
DiscoveredServletContainerInitializerHolder
-
-
Method Details
-
addStartupClasses
Classes that have annotations that are listed in @HandlesTypes are discovered by the ContainerInitializerAnnotationHandler and added here.- Overrides:
addStartupClasses
in classServletContainerInitializerHolder
- Parameters:
names
- of classnames that have an annotation that is listed as a class in HandlesTypes
-
addStartupClasses
Classes that are listed in @HandlesTypes and found by the createServletContainerInitializerAnnotationHandlers method.- Overrides:
addStartupClasses
in classServletContainerInitializerHolder
- Parameters:
clazzes
- classes listed in HandlesTypes
-
resolveStartupClasses
- Overrides:
resolveStartupClasses
in classServletContainerInitializerHolder
- Throws:
Exception
-