Class AtmospherePatches

java.lang.Object
com.vaadin.quarkus.deployment.nativebuild.AtmospherePatches

public class AtmospherePatches extends Object
Byte-code patches required to make Atmosphere work in a native image.

Atmosphere is compiled against the Servlet 5 API, so its implementations of the servlet API still declare methods that Servlet 6 removed, some of them with types it no longer has, and lack the ones it added. The patches align them with Servlet 6.

  • Constructor Summary

    Constructors
    Constructor
    Description
    AtmospherePatches(org.jboss.jandex.IndexView index)
    Creates the patches for the classes in the given index.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.BytecodeTransformerBuildItem> producer)
    Registers the bytecode transformers that apply the patches.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AtmospherePatches

      public AtmospherePatches(org.jboss.jandex.IndexView index)
      Creates the patches for the classes in the given index.
      Parameters:
      index - the index to look up the Atmosphere classes to patch in
  • Method Details

    • apply

      public void apply(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.BytecodeTransformerBuildItem> producer)
      Registers the bytecode transformers that apply the patches.
      Parameters:
      producer - the producer of the bytecode transformers