package context
contains the LongevityContext plus supporting types and classes
- Source
- package.scala
- Alphabetic
- By Inheritance
- context
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
BackEnd
extends AnyRef
the back end used by the longevity context.
-
case class
CassandraConfig
(keyspace: String, address: String, credentials: Option[DatabaseCredentials], replicationFactor: Int) extends Product with Serializable
the cassandra configuration
the cassandra configuration
- keyspace
the cassandra keyspace
- address
the contact point for the cassandra cluster
- credentials
optional username and password for connecting to the cassandra cluster
- replicationFactor
the replication factor to use when creating a keyspace
- See also
LongevityConfig
-
case class
DatabaseCredentials
(username: String, password: String) extends Product with Serializable
cassandra database credentials
cassandra database credentials
- See also
CassandraConfig
-
trait
JsonContext
extends AnyRef
the portion of a LongevityContext that deals with JSON marshalling
-
case class
LongevityConfig
(backEnd: BackEnd, autocreateSchema: Boolean, optimisticLocking: Boolean, mongodb: MongoConfig, cassandra: CassandraConfig, test: TestConfig) extends PersistenceConfig with Product with Serializable
the longevity configuration.
the longevity configuration. see the
reference.confresource 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
-
final
class
LongevityContext
extends PersistenceContext with TestContext with JsonContext
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.
-
case class
MongoConfig
(uri: String, db: String) extends Product with Serializable
the mongo configuration
the mongo configuration
- uri
the MongoDB URI
- db
the name of the MongoDB database to use
- See also
LongevityConfig
-
trait
PersistenceContext
extends AnyRef
the portion of a LongevityContext that deals with persistence
-
case class
TestConfig
(mongodb: MongoConfig, cassandra: CassandraConfig) extends Product with Serializable
the test configuration
the test configuration
- mongodb
the test configuration for MongoDB
- cassandra
the test configuration for Cassandra
- See also
LongevityConfig
-
trait
TestContext
extends AnyRef
the portion of a LongevityContext that deals with testing
Value Members
-
object
BackEnd
contains a list of all the available back ends
-
object
Cassandra
extends BackEnd with Product with Serializable
a back end indicating that persistent objects live in Cassandra
-
object
InMem
extends BackEnd with Product with Serializable
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.
-
object
LongevityConfig
extends Serializable
contains a factory method for LongevityConfig
-
object
LongevityContext
contains a factory method for LongevityContext objects
-
object
Mongo
extends BackEnd with Product with Serializable
a back end indicating that persistent objects live in MongoDB
-
object
TestContext
contains an implicit class for ScalaTest methods