lucee.Componentcbmongodb.Mongo.Config
Main configuration for MongoDB Connections
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
configStruct
|
true
|
false
|
|
any
|
jLoader
CBJavaloader.
|
true
|
false
|
Constructor Summary | |
---|---|
init([any configStruct])
Constructor. |
Method Summary | |
---|---|
any
|
addServer([any serverName], [any serverPort])
|
any
|
buildMongoClientOptions([struct mongoClientOptions])
|
string
|
configureEnvironment()
Main extension point: do whatever it takes to decide environment;. |
string
|
getConfigStruct()
|
string
|
getDBName()
|
struct
|
getDefaults()
|
string
|
getJLoader()
|
any
|
getMongoClientOptions()
|
array
|
getServers()
|
any
|
onDIComplete()
After init the autowire properties. |
private any
|
readConcern(string concern)
|
private any
|
readPreference(string preference)
|
any
|
removeAllServers()
|
any
|
setConfigStruct(any configStruct)
|
any
|
setJLoader(any jLoader)
|
private any
|
writeConcern(string concern)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
configStruct
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueCBJavaloader
access
- publicrequired
- falsereturntype
- anyinject
- id:loader@cbjavaloaderserializable
- trueMethod Detail |
---|
serverName
serverPort
mongoClientOptions
Main extension point: do whatever it takes to decide environment; set environment-specific defaults by overriding the environment-specific structure keyed on the environment name you decide
After init the autowire properties
concern
preference
configStruct
jLoader
concern