Scope

com.softwaremill.macwire.scopes.Scope
trait Scope

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract 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

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