Class DecoratedObjectFactory
java.lang.Object
org.eclipse.jetty.util.DecoratedObjectFactory
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) static voidassociateInfo(Object info) voidclear()<T> TcreateInstance(Class<T> clazz) <T> Tdecorate(T obj) voidstatic voidstatic Objectiterator()booleanremoveDecorator(Decorator decorator) voidsetDecorators(List<? extends Decorator> decorators) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator 
- 
Field Details
- 
ATTR
ServletContext attribute for the active DecoratedObjectFactory 
 - 
 - 
Constructor Details
- 
DecoratedObjectFactory
public DecoratedObjectFactory() 
 - 
 - 
Method Details
- 
associateInfo
 - 
disassociateInfo
public static void disassociateInfo() - 
getAssociatedInfo
 - 
addDecorator
 - 
removeDecorator
 - 
clear
public void clear() - 
createInstance
public <T> T createInstance(Class<T> clazz) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException  - 
decorate
 - 
destroy
 - 
getDecorators
 - 
iterator
 - 
setDecorators
 - 
toString
 
 -