Class JigsawAccessEnabler

  • All Implemented Interfaces:
    AccessEnabler

    public class JigsawAccessEnabler
    extends Object
    implements AccessEnabler
    Implementation of AccessEnabler for use in a Jigsaw enabled JDK runtime n.b. this class is only exemplary and must not be compiled into the Byteman jar. It is supposed to be generated at runtime and installed by the classloader for the org.jboss.byteman.jigsaw module created by the LayerFactory.
    • Field Detail

      • DEBUG

        public boolean DEBUG
        flag to allow debug trace to be generated
    • Constructor Detail

      • JigsawAccessEnabler

        public JigsawAccessEnabler​(Instrumentation inst)
        create an AccessEnabler that is capable of ensuring access when running inside a Jigsaw enabled JDK. This constructor throws an exception if it is not provided with a non-null Instrumentation instance as argument, effectively limiting the use of this class to JVMTI agents.
        Parameters:
        inst - the instrumentation instance we need to use to enable access