Class ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction

  • All Implemented Interfaces:
    java.security.PrivilegedAction<java.net.URL>
    Enclosing class:
    ByteArrayClassLoader.PersistenceHandler

    @Enhance
    protected static class ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction
    extends java.lang.Object
    implements java.security.PrivilegedAction<java.net.URL>
    An action to define a URL that represents a class file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] binaryRepresentation
      The binary representation of the type's class file.
      private static java.lang.String ENCODING
      The URL's encoding character set.
      private static java.lang.String NO_FILE
      Indicates that Byte Buddy's URLs do not have a file segment.
      private static int NO_PORT
      A value to define a standard port as Byte Buddy's URLs do not represent a port.
      private java.lang.String typeName
      The name of the type that this URL represents.
    • Constructor Summary

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

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

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

      • ENCODING

        private static final java.lang.String ENCODING
        The URL's encoding character set.
        See Also:
        Constant Field Values
      • NO_PORT

        private static final int NO_PORT
        A value to define a standard port as Byte Buddy's URLs do not represent a port.
        See Also:
        Constant Field Values
      • NO_FILE

        private static final java.lang.String NO_FILE
        Indicates that Byte Buddy's URLs do not have a file segment.
        See Also:
        Constant Field Values
      • typeName

        private final java.lang.String typeName
        The name of the type that this URL represents.
      • binaryRepresentation

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

      • UrlDefinitionAction

        protected UrlDefinitionAction​(java.lang.String typeName,
                                      byte[] binaryRepresentation)
        Creates a new URL definition action.
        Parameters:
        typeName - The name of the type that this URL represents.
        binaryRepresentation - The binary representation of the type's class file.
    • Method Detail

      • run

        public java.net.URL run()
        Specified by:
        run in interface java.security.PrivilegedAction<java.net.URL>