Class AgentBuilder.Default.ExecutingTransformer.LegacyVmDispatcher

  • All Implemented Interfaces:
    java.security.PrivilegedAction<byte[]>
    Enclosing class:
    AgentBuilder.Default.ExecutingTransformer

    @Enhance(includeSyntheticFields=true)
    protected class AgentBuilder.Default.ExecutingTransformer.LegacyVmDispatcher
    extends java.lang.Object
    implements java.security.PrivilegedAction<byte[]>
    A privileged action for transforming a class on a JVM prior to Java 9.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] binaryRepresentation
      The type's binary representation.
      private java.lang.Class<?> classBeingRedefined
      The class being redefined or null if no such class exists.
      private java.lang.ClassLoader classLoader
      The type's class loader or null if the bootstrap class loader is represented.
      private java.lang.String internalName
      The type's internal name or null if no such name exists.
      private java.security.ProtectionDomain protectionDomain
      The type's protection domain or null if not available.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LegacyVmDispatcher​(java.lang.ClassLoader classLoader, java.lang.String internalName, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] binaryRepresentation)
      Creates a new type transformation dispatcher.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] run()
      • Methods inherited from class java.lang.Object

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

      • LegacyVmDispatcher

        protected LegacyVmDispatcher​(@MaybeNull
                                     java.lang.ClassLoader classLoader,
                                     @MaybeNull
                                     java.lang.String internalName,
                                     @MaybeNull
                                     java.lang.Class<?> classBeingRedefined,
                                     @MaybeNull
                                     java.security.ProtectionDomain protectionDomain,
                                     byte[] binaryRepresentation)
        Creates a new type transformation dispatcher.
        Parameters:
        classLoader - The type's class loader or null if the bootstrap class loader is represented.
        internalName - The type's internal name or null if no such name exists.
        classBeingRedefined - The class being redefined or null if no such class exists.
        protectionDomain - The type's protection domain or null if not available.
        binaryRepresentation - The type's binary representation.
    • Method Detail

      • run

        @MaybeNull
        public byte[] run()
        Specified by:
        run in interface java.security.PrivilegedAction<byte[]>