Package org.eclipse.jetty.util
Class DecoratedObjectFactory
java.lang.Object
org.eclipse.jetty.util.DecoratedObjectFactory
@Deprecated(since="2021-05-27")
public class DecoratedObjectFactory
extends Object
implements Iterable<Decorator>
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
An ObjectFactory enhanced by
Decorator instances.
Consistent single location for all Decorator behavior, with equal behavior in a ServletContext and also for a stand alone client.
Used by ServletContextHandler, WebAppContext, WebSocketServerFactory, and WebSocketClient.
Can be found in the ServletContext Attributes at the DecoratedObjectFactory.ATTR key.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDecorator(Decorator decorator) Deprecated.voidclear()Deprecated.<T> TcreateInstance(Class<T> clazz) Deprecated.<T> Tdecorate(T obj) Deprecated.voidDeprecated.Deprecated.iterator()Deprecated.booleanremoveDecorator(Decorator decorator) Deprecated.voidsetDecorators(List<? extends Decorator> decorators) Deprecated.toString()Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ATTR
Deprecated.ServletContext attribute for the active DecoratedObjectFactory
-
-
Constructor Details
-
DecoratedObjectFactory
public DecoratedObjectFactory()Deprecated.
-
-
Method Details
-
addDecorator
Deprecated. -
removeDecorator
Deprecated. -
clear
public void clear()Deprecated. -
createInstance
public <T> T createInstance(Class<T> clazz) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException Deprecated. -
decorate
public <T> T decorate(T obj) Deprecated. -
destroy
Deprecated. -
getDecorators
Deprecated. -
iterator
Deprecated. -
setDecorators
Deprecated. -
toString
Deprecated.
-