Companion

object Companion

Properties

Link copied to clipboard
const val LOCAL_SOURCE: String

The source fragments names the service's own Manifest by.

Link copied to clipboard
const val SERVICE_KEY: String

The property that names a node's service unless the host says which did: wow.service.

Link copied to clipboard

What commandsOutside names the context of a command no Manifest of the service or its peers decides.

Functions

Link copied to clipboard
fun load(local: Manifest, classLoader: ClassLoader = Thread.currentThread().contextClassLoader, mapper: JsonMapper = JsonMapper.builder().build(), serviceKey: String = SERVICE_KEY): ContractDirectory

The directory of local and the peer contracts on classLoader (ClassPathContracts, the one reader of them); fails with a ContractException when a contract or a service build cannot be read, as when the directory cannot be built, and with a WowConfigurationException naming serviceKey, the property that gave local's service its name, when the builds on classLoader (ServiceBuild) name the service otherwise (requireBuilt) or a contract says another service hosts one of its contexts (requireHosted).

Link copied to clipboard

The directory of local alone: the service's own Manifest, without peer contracts.