Package net.bytebuddy.dynamic.loading
Class ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction
- java.lang.Object
-
- net.bytebuddy.dynamic.loading.ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction
-
- All Implemented Interfaces:
PrivilegedAction<URL>
- Enclosing class:
- ByteArrayClassLoader.PersistenceHandler
@Enhance protected static class ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction extends Object implements PrivilegedAction<URL>
An action to define a URL that represents a class file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.ByteArrayUrlStreamHandler
A stream handler that returns the given binary representation.
-
Constructor Summary
Constructors Modifier Constructor Description protected
UrlDefinitionAction(String typeName, byte[] binaryRepresentation)
Creates a new URL definition action.
-
-
-
Constructor Detail
-
UrlDefinitionAction
protected UrlDefinitionAction(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 URL run()
- Specified by:
run
in interfacePrivilegedAction<URL>
-
-