Companion

Properties

Link copied to clipboard
const val RESOURCE: String

Where a service module's jar carries the service its build names.

Functions

Link copied to clipboard
fun load(classLoader: ClassLoader, parse: (ByteArray) -> Any?): List<ServiceBuild>

The builds on classLoader, each parsed by parse into a JSON tree, so this module stays free of a JSON library; the same build found twice is read once. A ContractException lists every one that cannot be read, is not JSON or names no service.

Link copied to clipboard
fun treeOf(manifest: Manifest): Map<String, Any?>

The JSON tree the build writes at RESOURCE for manifest, the merged Manifest of a service.