scope
package scope
Members list
Concise view
Type members
Classlikes
Mark the child class as part of specified scope. Avoid hierarchies. Use this just as a convenient method to avoid the implicit val declaration.
Mark the child class as part of specified scope. Avoid hierarchies. Use this just as a convenient method to avoid the implicit val declaration.
case class EntityModel(value: String)
object EntityModel {
implicit val mapper: ModelMapper[Scope.Persistence, EntityModel, DomainModel] =
ModelMapper.scoped[Scope.Persistence]{ entity => ??? }
}
case class DomainModel(value: String)
case class MyRepo() extends InScope[Scope.Persistence]{
def foo = {
val entity: EntityModel = ???
val domain: DomainModel = entity.scoped.as[DomainModel]
}
}
Attributes
- S
Scope type
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
object ModelMapper
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ModelMapper.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Graph
- Supertypes
- Self type
- ModelMapperK.type
trait ModelMapperKInstances
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object ModelMapperK.type
trait Scope
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait CQRSCommandtrait CQRSQuerytrait Configurationtrait Domaintrait Endpointtrait Eventtrait HTTPRequesttrait HTTPResponsetrait Persistencetrait PersistenceReadtrait PersistenceWritetrait PrivateEndpointtrait PublicEndpointtrait RPCRequesttrait RPCResponse
object Scope
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class TypedScopeContext[S]
object ScopeContext
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ScopeContext.type
Attributes
- Graph
- Supertypes