AttachmentsClassLoaderBuilder

This is just a factory that provides caches to optimise expensive construction/loading of classloaders, serializers, whitelisted classes.

Functions

Link copied to clipboard
fun <T> withAttachmentsClassLoaderContext(attachments: List<Attachment>, params: NetworkParameters, txId: SecureHash, isAttachmentTrusted: (Attachment) -> Boolean, parent: ClassLoader = ClassLoader.getSystemClassLoader(), attachmentsClassLoaderCache: AttachmentsClassLoaderCache?, block: (SerializationContext) -> T): T

Runs the given block with serialization execution context set up with a (possibly cached) attachments classloader.