Package

longevity

context

Permalink

package context

contains the LongevityContext plus supporting types and classes

Source
package.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. context
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait BackEnd extends AnyRef

    Permalink

    the back end used by the longevity context.

    the back end used by the longevity context. right now, you have three options:

    please note that the back end selected for your longevity context can be overridden in a test environment, so that you can use an in-memory database for integration testing.

  2. case class CassandraConfig(keyspace: String, address: String, credentials: Option[DatabaseCredentials], replicationFactor: Int) extends Product with Serializable

    Permalink

    the cassandra configuration

    the cassandra configuration

    See also

    LongevityConfig

  3. case class DatabaseCredentials(username: String, password: String) extends Product with Serializable

    Permalink

    cassandra database credentials

    cassandra database credentials

    See also

    CassandraConfig

  4. trait JsonContext extends AnyRef

    Permalink

    the portion of a LongevityContext that deals with JSON marshalling

  5. case class LongevityConfig(backEnd: BackEnd, autocreateSchema: Boolean, optimisticLocking: Boolean, mongodb: MongoConfig, cassandra: CassandraConfig, test: TestConfig) extends PersistenceConfig with Product with Serializable

    Permalink

    the longevity configuration.

    the longevity configuration. see the reference.conf resource file for all the longevity config settings, and their defaults.

    backEnd

    the back end used by the longevity context

    autocreateSchema

    should longevity autocreate schema when the repositories are created?

    optimisticLocking

    is optimistic locking turned on?

    mongodb

    the mongo configuration

    cassandra

    the cassandra configuration

    test

    the test configuration

  6. final class LongevityContext extends PersistenceContext with TestContext with JsonContext

    Permalink

    the longevity managed portion of the bounded context for your subdomain.

    the longevity managed portion of the bounded context for your subdomain. the bounded context is a capture of the strategies and tools used by the applications relating to your subdomain. in other words, those tools that speak the language of the subdomain.

  7. case class MongoConfig(uri: String, db: String) extends Product with Serializable

    Permalink

    the mongo configuration

    the mongo configuration

    See also

    LongevityConfig

  8. trait PersistenceContext extends AnyRef

    Permalink

    the portion of a LongevityContext that deals with persistence

  9. case class TestConfig(mongodb: MongoConfig, cassandra: CassandraConfig) extends Product with Serializable

    Permalink

    the test configuration

    the test configuration

    See also

    LongevityConfig

  10. trait TestContext extends AnyRef

    Permalink

    the portion of a LongevityContext that deals with testing

Value Members

  1. object BackEnd

    Permalink

    contains a list of all the available back ends

  2. object Cassandra extends BackEnd with Product with Serializable

    Permalink

    a back end indicating that persistent objects live in Cassandra

  3. object InMem extends BackEnd with Product with Serializable

    Permalink

    a back end indicating that persistent objects live in-memory.

    a back end indicating that persistent objects live in-memory. when the application exits, they are gone.

  4. object LongevityConfig extends Serializable

    Permalink

    contains a factory method for LongevityConfig

  5. object LongevityContext

    Permalink

    contains a factory method for LongevityContext objects

  6. object Mongo extends BackEnd with Product with Serializable

    Permalink

    a back end indicating that persistent objects live in MongoDB

  7. object TestContext

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped