p
scope
package scope
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- scope
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- trait InScope[S <: Scope] extends AnyRef
Mark the child class as part of specified scope.
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] } }
- S
Scope type
- type ModelMapper[S <: Scope, A, B] = ModelMapperK[Id, S, A, B]
- class ModelMapperK[F[_], S <: Scope, A, B] extends AnyRef
- Annotations
- @implicitNotFound() @implicitAmbiguous()
- trait ModelMapperKInstances extends AnyRef
- trait Scope extends AnyRef
- sealed class ScopeContext extends AnyRef
- sealed class TypedScopeContext[S <: Scope] extends ScopeContext
Value Members
- object ModelMapper
- object ModelMapperK extends ModelMapperKInstances
- object Scope
- object ScopeContext
- object syntax extends ModelScopeMapperSyntax