public class WeldDecorator extends Object
This Decorator has no hard dependencies on Jetty APIs, rather it relies on
the server to be configured so that an object set as the "org.eclipse.jetty.cdi.decorator"
is introspected for methods that match the decorate(Object) and destroy(Object)
signatures, which are then invoked dynamically.
| Modifier | Constructor and Description |
|---|---|
protected |
WeldDecorator(ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
decorate(T o)
Decorate an object.
|
void |
destroy(Object o)
Destroy a decorated object.
|
public <T> T decorate(T o)
The signature of this method must match what is introspected for by the Jetty DecoratingListener class. It is invoked dynamically.
T - The type of the object to be decoratedo - The object to be decoratedpublic void destroy(Object o)
The signature of this method must match what is introspected for by the Jetty DecoratingListener class. It is invoked dynamically.
o - The object to be destroyedCopyright © 2020. All rights reserved.