Packages

p

scope

package scope

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. scope
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. 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

  2. type ModelMapper[S <: Scope, A, B] = ModelMapperK[Id, S, A, B]
  3. class ModelMapperK[F[_], S <: Scope, A, B] extends AnyRef
    Annotations
    @implicitNotFound() @implicitAmbiguous()
  4. trait ModelMapperKInstances extends AnyRef
  5. trait Scope extends AnyRef
  6. sealed class ScopeContext extends AnyRef
  7. sealed class TypedScopeContext[S <: Scope] extends ScopeContext

Value Members

  1. object ModelMapper
  2. object ModelMapperK extends ModelMapperKInstances
  3. object Scope
  4. object ScopeContext
  5. object syntax extends ModelScopeMapperSyntax

Inherited from AnyRef

Inherited from Any

Ungrouped