Class ByteArrayClassLoader.ClassDefinitionAction

  • All Implemented Interfaces:
    java.security.PrivilegedAction<java.lang.Class<?>>
    Enclosing class:
    ByteArrayClassLoader

    @Enhance(includeSyntheticFields=true)
    protected class ByteArrayClassLoader.ClassDefinitionAction
    extends java.lang.Object
    implements java.security.PrivilegedAction<java.lang.Class<?>>
    An action for defining a located class that is not yet loaded.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] binaryRepresentation
      The binary representation of the class to be loaded.
      private java.lang.String name
      The binary name of the class to define.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ClassDefinitionAction​(java.lang.String name, byte[] binaryRepresentation)
      Creates a new class definition action.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> run()
      • Methods inherited from class java.lang.Object

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

      • name

        private final java.lang.String name
        The binary name of the class to define.
      • binaryRepresentation

        private final byte[] binaryRepresentation
        The binary representation of the class to be loaded.
    • Constructor Detail

      • ClassDefinitionAction

        protected ClassDefinitionAction​(java.lang.String name,
                                        byte[] binaryRepresentation)
        Creates a new class definition action.
        Parameters:
        name - The binary name of the class to define.
        binaryRepresentation - The binary representation of the class to be loaded.
    • Method Detail

      • run

        public java.lang.Class<?> run()
        Specified by:
        run in interface java.security.PrivilegedAction<java.lang.Class<?>>