Registry

zio.blocks.config.FlagSource.Registry
object Registry

Global registry of FlagSource instances. Thread-safe. Sources are iterated in registration order so that the first-registered source wins when multiple sources resolve the same flag name.

Attributes

Source
FlagSource.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Registry.type

Members list

Value members

Concrete methods

def all: Seq[FlagSource]

Attributes

Source
FlagSource.scala
def clear(): Unit

Clear all registered sources (for testing).

Clear all registered sources (for testing).

Attributes

Source
FlagSource.scala
def get(sourceId: String): Maybe[FlagSource]

Attributes

Source
FlagSource.scala
def register(source: FlagSource): Unit

Attributes

Source
FlagSource.scala
def resolve(flagName: String): Maybe[SourceValue[String]]

Resolve a flag name across all registered sources in registration order. First Some wins.

Resolve a flag name across all registered sources in registration order. First Some wins.

Attributes

Source
FlagSource.scala
def unregister(sourceId: String): Unit

Attributes

Source
FlagSource.scala