MongoDbConnectionResolver class
Helper class that resolves MongoDB connection and credential parameters, validates them and generates a connection URI.
It is able to process multiple connections to MongoDB cluster nodes.
Configuration parameters
connection(s)
:discovery_key
: (optional) a key to retrieve the connection fromIDiscovery
host
: host name or IP addressport
: port number (default: 27017)database
: database nameuri
: resource URI or connection string with all parameters in it
credential(s)
:store_key
: (optional) a key to retrieve the credentials fromICredentialStore
username
: user namepassword
: user password
References
- *:discovery:*:*:1.0 (optional)
IDiscovery
services - *:credential-store:*:*:1.0 (optional) Credential stores to resolve credentials
Constructors
Properties
- connectionResolver ↔ ConnectionResolver
-
The connections resolver.
read / write
- credentialResolver ↔ CredentialResolver
-
The credentials resolver.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
configure(
ConfigParams config) → void - Configures component by passing configuration parameters. [...]
-
resolve(
String correlationId) → Future< String> - Resolves MongoDB connection URI from connection and credential parameters. [...]
-
setReferences(
IReferences references) → void - Sets references to dependent components. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited