pull up MySQL URI scheme

This commit is contained in:
Christopher Smith
2014-07-09 19:29:07 -05:00
parent a5e6d6ad72
commit 9ef5d5da70
4 changed files with 12 additions and 9 deletions

View File

@@ -3,14 +3,15 @@ package org.springframework.cloud.cloudfoundry;
import org.springframework.cloud.service.common.MysqlServiceInfo;
/**
*
*
* @author Ramnivas Laddad
*
*/
public class MysqlServiceInfoCreator extends RelationalServiceInfoCreator<MysqlServiceInfo> {
public MysqlServiceInfoCreator() {
super(new Tags("mysql"), "mysql");
// the literal in the tag is CloudFoundry-specific
super(new Tags("mysql"), MysqlServiceInfo.URI_SCHEME);
}
@Override

View File

@@ -3,14 +3,16 @@ package org.springframework.cloud.service.common;
import org.springframework.cloud.service.ServiceInfo.ServiceLabel;
/**
*
*
* @author Ramnivas Laddad
*
*/
@ServiceLabel("mysql")
public class MysqlServiceInfo extends RelationalServiceInfo {
public static final String URI_SCHEME = "mysql";
public MysqlServiceInfo(String id, String url) {
super(id, url, "mysql");
super(id, url, URI_SCHEME);
}
}

View File

@@ -3,14 +3,14 @@ package org.springframework.cloud.heroku;
import org.springframework.cloud.service.common.MysqlServiceInfo;
/**
*
*
* @author Ramnivas Laddad
*
*/
public class MysqlServiceInfoCreator extends RelationalServiceInfoCreator<MysqlServiceInfo> {
public MysqlServiceInfoCreator() {
super("mysql");
super(MysqlServiceInfo.URI_SCHEME);
}
@Override

View File

@@ -13,15 +13,15 @@ import org.springframework.cloud.service.ServiceInfo;
import org.springframework.cloud.service.common.MysqlServiceInfo;
/**
*
*
* @author Ramnivas Laddad
*
*/
public class HerokuConnectorMysqlServiceTest extends AbstractHerokuConnectorRelationalServiceTest {
public HerokuConnectorMysqlServiceTest() {
super("mysql");
super(MysqlServiceInfo.URI_SCHEME);
}
@Test
public void mysqlServiceCreation() {
Map<String, String> env = new HashMap<String, String>();