Interface Decorator

  • All Known Subinterfaces:
    ServletContextHandler.Decorator
    All Known Implementing Classes:
    DeprecationWarning

    @Deprecated(since="2021-05-27")
    public interface Decorator
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    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 Detail

      • decorate

        <T> T decorate​(T o)
        Deprecated.
      • destroy

        void destroy​(java.lang.Object o)
        Deprecated.