Interface Decorator

All Known Subinterfaces:
ServletContextHandler.Decorator
All Known Implementing Classes:
DecoratingListener.DynamicDecorator, DeprecationWarning, ServletContextHandler.LegacyDecorator

public interface Decorator
Interface for 3rd party libraries to decorate recently created objects in Jetty.

Most common use is weld/CDI.

This was moved from org.eclipse.jetty.servlet.ServletContextHandler to allow client applications to also use Weld/CDI to decorate objects. Such as websocket client (which has no servlet api requirement)

  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    decorate(T o)
     
    void
     
  • Method Details

    • decorate

      <T> T decorate(T o)
    • destroy

      void destroy(Object o)