ThreadLocalScopeStorage

com.softwaremill.macwire.scopes.ThreadLocalScopeStorage

Attributes

Graph
Supertypes
trait Scope
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def associate(storage: ScopeStorage): Unit
def associate(storage: Map[String, Any]): Unit
def associate(storage: Map[String, Any]): Unit
def disassociate(): Unit
def get[T](key: String, createT: => T): T

Get an instance from the current scope, for the specified key, using the given factory class to create an instance if not yet created.

Get an instance from the current scope, for the specified key, using the given factory class to create an instance if not yet created.

Attributes

def withEmptyStorage[T](body: => T): T
def withStorage[T](storage: ScopeStorage)(body: => T): T
def withStorage[T](storage: Map[String, Any])(body: => T): T
def withStorage[T](storage: Map[String, Any])(body: => T): T

Inherited methods

def apply[T](createT: => T)(implicit tag: ClassTag[T]): T

Create a scoped value with the given factory class.

Create a scoped value with the given factory class.

Attributes

Inherited from:
Scope