ExtensibleServiceRepository

kreuzberg.ExtensibleServiceRepository
case class ExtensibleServiceRepository(instances: Map[String, Any]) extends ServiceRepository

Service Repository where it's possible to add services.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def add[T](value: T)(using snp: ServiceNameProvider[T]): ExtensibleServiceRepository

Add some type to the repository

Add some type to the repository

Attributes

override def serviceOption[S](using snp: ServiceNameProvider[S]): Option[S]

Returns a service if given.

Returns a service if given.

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def service[S](using snp: ServiceNameProvider[S]): S

Returns a service, given it's name provider

Returns a service, given it's name provider

Attributes

Inherited from:
ServiceRepository