Constructor and Description |
---|
DbServiceFactory() |
public DbService createDbService(String username, String password, String dbUrl) throws StorageException
DbService
instance which can be
used to establish a connection with Storage
. Note that the actual
StorageProvider
which will be used for the connection is looked
up based on registered StorageProvider OSGi services and URLs they are
able to handle. If a DbService
instance is already registered as
a service, users are encouraged to use that instance for disconnecting
from storage.username
- The username to use for the connection to storage.password
- The password to use for the connection to storage.dbUrl
- The URL to the storage endpoint. For example
mongodb://127.0.0.1:27518
or
https://storage.example.com/storage
.DbService
instance which can be used for
establishing new storage connections.StorageException
- If no matching StorageProvider
could be found for the
given dbUrl.Copyright © 2013. All Rights Reserved.