public final class YamlShadowDataSourceFactory extends Object
| 构造器和说明 |
|---|
YamlShadowDataSourceFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static DataSource |
createDataSource(byte[] yamlBytes)
Create shadow data source.
|
static DataSource |
createDataSource(File yamlFile)
Create shadow data source.
|
static DataSource |
createDataSource(Map<String,DataSource> dataSourceMap,
File yamlFile)
Create shadow data source.
|
public static DataSource createDataSource(File yamlFile) throws IOException, SQLException
yamlFile - YAML file for encrypt rule configuration with data sourcesIOException - IO exceptionSQLException - SQL exceptionpublic static DataSource createDataSource(byte[] yamlBytes) throws IOException, SQLException
yamlBytes - YAML bytes for encrypt rule configuration with data sourcesIOException - IO exceptionSQLException - SQL exceptionpublic static DataSource createDataSource(Map<String,DataSource> dataSourceMap, File yamlFile) throws IOException, SQLException
dataSourceMap - the data sources mapyamlFile - YAML file for encrypt rule configuration with data sourcesIOException - IO exceptionSQLException - SQL exceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.