Package io.quarkus.mongodb.runtime
Class MongoServiceBindingConverter
java.lang.Object
io.quarkus.mongodb.runtime.MongoServiceBindingConverter
- All Implemented Interfaces:
ServiceBindingConverter
ServiceBindingConverter for MongoDB to support SBO (Service Binding Operator) in Quarkus.
This class supports both the Standard and SRV connection string format for
MongoDB depending on whether srv property is true or false. If the srv property is
missing then it is same as having a value of false.
Following individual properties are supported to make the connection string:
The Quarkus properties set by this class are:
Following individual properties are supported to make the connection string:
- username
- password
- host (port information can be provided in this property separated by : sign, e.g. localhost:27010
- database
- srv
- options
The Quarkus properties set by this class are:
- quarkus.mongodb.connection-string
- quarkus.mongodb.credentials.username (if username is provided)
- quarkus.mongodb.credentials.password (if password is provided)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BINDING_CONFIG_SOURCE_NAME
- See Also:
-
MONGO_DB_CONNECTION_STRING
- See Also:
-
MONGO_DB_USERNAME
- See Also:
-
MONGO_DB_PASSWORD
- See Also:
-
DB_USER
- See Also:
-
DB_PASSWORD
- See Also:
-
DB_HOST
- See Also:
-
DB_DATABASE
- See Also:
-
DB_OPTIONS
- See Also:
-
DB_PREFIX_STANDARD
- See Also:
-
DB_PREFIX_SRV
- See Also:
-
DB_SRV
- See Also:
-
-
Constructor Details
-
MongoServiceBindingConverter
public MongoServiceBindingConverter()
-
-
Method Details
-
convert
- Specified by:
convert
in interfaceServiceBindingConverter
-