Scope

trait Scope
class Object
trait Matchable
class Any

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.

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.