Package org.eclipse.jetty.util.component
Interface Container
- All Known Subinterfaces:
Connector
,NetworkConnector
- All Known Implementing Classes:
AbstractConnectionFactory
,AbstractConnectionPool
,AbstractConnector
,AbstractConnectorHttpClientTransport
,AbstractHandler
,AbstractHandler.ErrorDispatchHandler
,AbstractHandlerContainer
,AbstractHttpClientTransport
,AbstractLoginService
,AbstractNCSARequestLog
,AbstractNetworkConnector
,AbstractSessionCache
,AbstractSessionDataStore
,AsyncDelayHandler
,AsyncNCSARequestLog
,AttributeContainerMap
,BufferedResponseHandler
,CachingSessionDataStore
,ConfigurableSpnegoLoginService
,ConstraintSecurityHandler
,ContainerLifeCycle
,ContextHandler
,ContextHandlerCollection
,CustomRequestLog
,DebugHandler
,DefaultHandler
,DefaultSessionCache
,DefaultSessionIdManager
,DetectorConnectionFactory
,DuplexConnectionPool
,ErrorHandler
,ErrorPageErrorHandler
,ExecutorSizedThreadPool
,ExecutorThreadPool
,FileBufferedResponseHandler
,FileSessionDataStore
,GzipHandler
,HandlerCollection
,HandlerList
,HandlerWrapper
,HashLoginService
,HotSwapHandler
,HttpClient
,HttpClientTransportOverHTTP
,HttpConnectionFactory
,HttpDestination
,HttpDestinationOverHTTP
,IdleTimeoutHandler
,InetAccessHandler
,IPAccessHandler
,JDBCLoginService
,JDBCSessionDataStore
,KeyStoreScanner
,LeakTrackingByteBufferPool
,LeakTrackingConnectionPool
,LocalConnector
,LowResourceMonitor
,ManagedSelector
,MonitoredQueuedThreadPool
,MovedContextHandler
,MultiplexConnectionPool
,MultiplexHttpDestination
,NCSARequestLog
,NegotiatingServerConnectionFactory
,NetworkTrafficServerConnector
,NullSessionCache
,NullSessionDataStore
,OptionalSslConnectionFactory
,PoolingHttpDestination
,ProxyConnectionFactory
,QueuedThreadPool
,RandomConnectionPool
,RequestLogHandler
,ResourceHandler
,RoundRobinConnectionPool
,ScopedHandler
,SecuredRedirectHandler
,SecurityHandler
,SelectorManager
,Server
,ServerConnector
,ServletContextHandler
,ServletHandler
,SessionHandler
,ShutdownHandler
,SizeLimitHandler
,Slf4jRequestLog
,SslConnectionFactory
,StatisticsHandler
,ThreadLimitHandler
,ValidatingConnectionPool
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
A Container
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Add a bean.boolean
Deprecated.Adds the given bean, explicitly managing it or not.void
addEventListener
(Container.Listener listener) Deprecated.Add an event listener.<T> T
Deprecated.getBeans()
Deprecated.<T> Collection
<T> Deprecated.<T> Collection
<T> getContainedBeans
(Class<T> clazz) Deprecated.boolean
Deprecated.Test if this container manages a beanvoid
Deprecated.Manages a bean already contained by this aggregate, so that it is started/stopped/destroyed with this aggregate.boolean
removeBean
(Object o) Deprecated.Removes the given bean.void
removeEventListener
(Container.Listener listener) Deprecated.Remove an event listener.void
Deprecated.Unmanages a bean already contained by this aggregate, so that it is not started/stopped/destroyed with this aggregate.
-
Method Details
-
addBean
Deprecated.Add a bean. If the bean is-aContainer.Listener
, then also do an implicitaddEventListener(Listener)
.- Parameters:
o
- the bean object to add- Returns:
- true if the bean was added, false if it was already present
-
getBeans
Collection<Object> getBeans()Deprecated.- Returns:
- the collection of beans known to this aggregate, in the order they were added.
- See Also:
-
getBeans
Deprecated.- Type Parameters:
T
- the Bean type- Parameters:
clazz
- the class of the beans- Returns:
- a list of beans of the given class (or subclass), in the order they were added.
- See Also:
-
getBean
Deprecated.- Type Parameters:
T
- the Bean type- Parameters:
clazz
- the class of the bean- Returns:
- the first bean (in order added) of a specific class (or subclass), or null if no such bean exist
-
removeBean
Deprecated.Removes the given bean. If the bean is-aContainer.Listener
, then also do an implicitremoveEventListener(Listener)
.- Parameters:
o
- the bean to remove- Returns:
- whether the bean was removed
-
addEventListener
Deprecated.Add an event listener.- Parameters:
listener
- the listener to add- See Also:
-
removeEventListener
Deprecated.Remove an event listener.- Parameters:
listener
- the listener to remove- See Also:
-
unmanage
Deprecated.Unmanages a bean already contained by this aggregate, so that it is not started/stopped/destroyed with this aggregate.- Parameters:
bean
- The bean to unmanage (must already have been added).
-
manage
Deprecated.Manages a bean already contained by this aggregate, so that it is started/stopped/destroyed with this aggregate.- Parameters:
bean
- The bean to manage (must already have been added).
-
isManaged
Deprecated.Test if this container manages a bean- Parameters:
bean
- the bean to test- Returns:
- whether this aggregate contains and manages the bean
-
addBean
Deprecated.Adds the given bean, explicitly managing it or not.- Parameters:
o
- The bean object to addmanaged
- whether to managed the lifecycle of the bean- Returns:
- true if the bean was added, false if it was already present
-
getContainedBeans
Deprecated.- Type Parameters:
T
- the Bean type- Parameters:
clazz
- the class of the beans- Returns:
- the list of beans of the given class from the entire Container hierarchy. The order is primarily depth first and secondarily added order.
-