com.github.rssh.appcontext

Members list

Type members

Classlikes

opaque object AppContext

Application context is a way, to resolve components dependencies. Each component should provide an AppContextProvider, and AppContext[Component] will instantiate this components with dependencies.

Application context is a way, to resolve components dependencies. Each component should provide an AppContextProvider, and AppContext[Component] will instantiate this components with dependencies.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
AppContext.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

AppContextProvider is a type class that provides a value of type T

AppContextProvider is a type class that provides a value of type T

When we have AppContextProvider for a type T, then we can resolve T for dependency injection, using AppContext[T] syntax. AppContext[T]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait AppContextProviders[Xs <: NonEmptyTuple] extends AppContextProvidersSearch[Xs]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait AppContextProvidersSearch[Xs <: NonEmptyTuple]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
opaque object TupleIndex

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
TupleIndex.type
class appContextCacheClass[T] extends StaticAnnotation

Annotation to mark class as a key for component cache. Useful for cases when we have multiple implementation of some generic component. i.e.

Annotation to mark class as a key for component cache. Useful for cases when we have multiple implementation of some generic component. i.e.

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any

Types

type AppContextCacheMap[K, V] = TrieMap[K, V]