Class ContinuableDetector

java.lang.Object
rife.instrument.ClassInterfaceDetector
rife.continuations.instrument.ContinuableDetector

public class ContinuableDetector extends ClassInterfaceDetector
Detects whether a class implements the continuable marker interface that is set up in the provided instrumentation config.

This is done without actually loading the class and by analyzing the bytecode itself. It's important to not load the class because the class is supposed to be instrumented before actually loading it, if it implements the marker interface.

Since:
1.0
  • Constructor Details

    • ContinuableDetector

      public ContinuableDetector(ContinuationConfigInstrument config, ClassBytesProvider bytesProvider)
      Creates a new instance of the detector.
      Parameters:
      config - the instrumentation configuration
      bytesProvider - the bytecode provider that will be used to load the bytes relevant classes and interfaces
      Since:
      1.0