Add DataSourceCreator for GemfireXD
This commit is contained in:
@@ -2,6 +2,7 @@ description = 'Spring-Cloud Support for Pivotal CF'
|
||||
|
||||
dependencies {
|
||||
compile project(':spring-cloud-cloudfoundry-connector')
|
||||
compile project(':spring-cloud-spring-service-connector')
|
||||
optional("org.apache.hadoop:hadoop-common:2.2.0")
|
||||
|
||||
testCompile project(path: ':spring-cloud-cloudfoundry-connector', configuration: 'tests')
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package org.springframework.cloud.pcf.gemfire;
|
||||
|
||||
import org.springframework.cloud.service.relational.DataSourceCreator;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Ramnivas Laddad
|
||||
*
|
||||
*/
|
||||
public class GemfireXDDataSourceCreator extends DataSourceCreator<GemfireXDServiceInfo> {
|
||||
|
||||
private static final String[] DRIVERS = new String[]{"com.pivotal.gemfirexd.internal.jdbc.ClientConnectionPoolDataSource"};
|
||||
private static final String VALIDATION_QUERY = null;
|
||||
|
||||
public GemfireXDDataSourceCreator() {
|
||||
super("spring-cloud.gemfirexd.driver", DRIVERS, VALIDATION_QUERY);
|
||||
}
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
org.springframework.cloud.pcf.hadoop.HadoopConfigurationCreator
|
||||
org.springframework.cloud.pcf.gemfire.GemfireXDDataSourceCreator
|
||||
Reference in New Issue
Block a user