Class DefaultConnectionConfigurationService
- java.lang.Object
-
- com.snowflake.connectors.application.configuration.connection.DefaultConnectionConfigurationService
-
- All Implemented Interfaces:
ConnectionConfigurationService
public class DefaultConnectionConfigurationService extends Object implements ConnectionConfigurationService
Default implementation ofConnectionConfigurationService
.
-
-
Constructor Summary
Constructors Constructor Description DefaultConnectionConfigurationService(ConfigurationRepository configurationRepository)
Creates a newDefaultConnectionConfigurationService
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Variant
getConfiguration()
Returns current connection configuration properties.void
updateConfiguration(Variant configuration)
Updates the connection configuration record with the provided properties.
-
-
-
Constructor Detail
-
DefaultConnectionConfigurationService
public DefaultConnectionConfigurationService(ConfigurationRepository configurationRepository)
Creates a newDefaultConnectionConfigurationService
.- Parameters:
configurationRepository
-ConfigurationRepository
object
-
-
Method Detail
-
updateConfiguration
public void updateConfiguration(Variant configuration)
Description copied from interface:ConnectionConfigurationService
Updates the connection configuration record with the provided properties. If the configuration is not present, a new record will be created.- Specified by:
updateConfiguration
in interfaceConnectionConfigurationService
- Parameters:
configuration
- connection configuration properties
-
getConfiguration
public Variant getConfiguration()
Description copied from interface:ConnectionConfigurationService
Returns current connection configuration properties.- Specified by:
getConfiguration
in interfaceConnectionConfigurationService
- Returns:
- connection configuration properties
-
-