@Immutable
public class ContractLoader
extends java.lang.ClassLoader
The defineClass
method in this class creates an instance of the Contract
or
the ContractBase
class from its corresponding bytecode. It only grants the given
permissions with ProtectionDomain
.
Constructor and Description |
---|
ContractLoader(java.security.ProtectionDomain protectionDomain) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
defineClass(ContractEntry entry)
Turns the bytecode of a registered contract into an instance of class
Class . |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
@Inject public ContractLoader(java.security.ProtectionDomain protectionDomain)
public java.lang.Class<?> defineClass(ContractEntry entry)
Class
.entry
- the entry of a Contract
or a ContractBase
that will be loadedContract
or ContractBase