Class AgentBuilder.Default.ExecutingTransformer.Java9CapableVmDispatcher

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

    @Enhance(includeSyntheticFields=true)
    protected class AgentBuilder.Default.ExecutingTransformer.Java9CapableVmDispatcher
    extends java.lang.Object
    implements java.security.PrivilegedAction<byte[]>
    A privileged action for transforming a class on a JVM that supports modules.
    • 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 type is loaded by the bootstrap loader.
      private java.lang.String internalTypeName
      The type's internal name or null if no such name exists.
      private java.security.ProtectionDomain protectionDomain
      The type's protection domain.
      private java.lang.Object rawModule
      The type's java.lang.Module.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Java9CapableVmDispatcher​(java.lang.Object rawModule, java.lang.ClassLoader classLoader, java.lang.String internalTypeName, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] binaryRepresentation)
      Creates a new legacy 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
    • Field Detail

      • rawModule

        private final java.lang.Object rawModule
        The type's java.lang.Module.
      • classLoader

        private final java.lang.ClassLoader classLoader
        The type's class loader or null if the type is loaded by the bootstrap loader.
      • internalTypeName

        private final java.lang.String internalTypeName
        The type's internal name or null if no such name exists.
      • classBeingRedefined

        private final java.lang.Class<?> classBeingRedefined
        The class being redefined or null if no such class exists.
      • protectionDomain

        private final java.security.ProtectionDomain protectionDomain
        The type's protection domain.
      • binaryRepresentation

        private final byte[] binaryRepresentation
        The type's binary representation.
    • Constructor Detail

      • Java9CapableVmDispatcher

        protected Java9CapableVmDispatcher​(java.lang.Object rawModule,
                                           java.lang.ClassLoader classLoader,
                                           java.lang.String internalTypeName,
                                           java.lang.Class<?> classBeingRedefined,
                                           java.security.ProtectionDomain protectionDomain,
                                           byte[] binaryRepresentation)
        Creates a new legacy dispatcher.
        Parameters:
        rawModule - The type's java.lang.Module.
        classLoader - The type's class loader or null if the type is loaded by the bootstrap loader.
        internalTypeName - 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.
        binaryRepresentation - The type's binary representation.
    • Method Detail

      • run

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