Package org.eclipse.jetty.util
Class DecoratedObjectFactory
- java.lang.Object
-
- org.eclipse.jetty.util.DecoratedObjectFactory
-
- All Implemented Interfaces:
java.lang.Iterable<Decorator>
@Deprecated(since="2021-05-27") public class DecoratedObjectFactory extends java.lang.Object implements java.lang.Iterable<Decorator>
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.An ObjectFactory enhanced byDecoratorinstances.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.ATTRkey.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRDeprecated.ServletContext attribute for the active DecoratedObjectFactory
-
Constructor Summary
Constructors Constructor Description DecoratedObjectFactory()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDecorator(Decorator decorator)Deprecated.voidclear()Deprecated.<T> TcreateInstance(java.lang.Class<T> clazz)Deprecated.<T> Tdecorate(T obj)Deprecated.voiddestroy(java.lang.Object obj)Deprecated.java.util.List<Decorator>getDecorators()Deprecated.java.util.Iterator<Decorator>iterator()Deprecated.booleanremoveDecorator(Decorator decorator)Deprecated.voidsetDecorators(java.util.List<? extends Decorator> decorators)Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Method Detail
-
addDecorator
public void addDecorator(Decorator decorator)
Deprecated.
-
removeDecorator
public boolean removeDecorator(Decorator decorator)
Deprecated.
-
clear
public void clear()
Deprecated.
-
createInstance
public <T> T createInstance(java.lang.Class<T> clazz) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetExceptionDeprecated.- Throws:
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetException
-
decorate
public <T> T decorate(T obj)
Deprecated.
-
destroy
public void destroy(java.lang.Object obj)
Deprecated.
-
getDecorators
public java.util.List<Decorator> getDecorators()
Deprecated.
-
iterator
public java.util.Iterator<Decorator> iterator()
Deprecated.- Specified by:
iteratorin interfacejava.lang.Iterable<Decorator>
-
setDecorators
public void setDecorators(java.util.List<? extends Decorator> decorators)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-