LazyOutputArtifact

data class LazyOutputArtifact(val name: String, val content: () -> ByteArray, val type: ArtifactType) : OutputArtifact<() -> ByteArray>

Represents a BinaryOutputArtifact whose content is lazily loaded on demand (via accept).

Parameters

name

name of the resource (without file extensions)

content

supplier of the content of the resource, retrieved upon visit

type

type of content the resource contains

Constructors

Link copied to clipboard
constructor(name: String, content: () -> ByteArray, type: ArtifactType)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val content: () -> ByteArray
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val type: ArtifactType

Functions

Link copied to clipboard
open override fun <T> accept(visitor: OutputResourceVisitor<T>): T

Accepts a visitor to perform operations on the resource.