From dfa8b87670ffb3039a1854d4311a488b2e4b1571 Mon Sep 17 00:00:00 2001 From: Christopher Smith Date: Wed, 9 Jul 2014 19:30:06 -0500 Subject: [PATCH] pull up Oracle URI scheme --- .../cloud/cloudfoundry/OracleServiceInfoCreator.java | 2 +- .../cloud/service/common/OracleServiceInfo.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-cloud-cloudfoundry-connector/src/main/java/org/springframework/cloud/cloudfoundry/OracleServiceInfoCreator.java b/spring-cloud-cloudfoundry-connector/src/main/java/org/springframework/cloud/cloudfoundry/OracleServiceInfoCreator.java index 1b8159f..1d82ab3 100644 --- a/spring-cloud-cloudfoundry-connector/src/main/java/org/springframework/cloud/cloudfoundry/OracleServiceInfoCreator.java +++ b/spring-cloud-cloudfoundry-connector/src/main/java/org/springframework/cloud/cloudfoundry/OracleServiceInfoCreator.java @@ -4,7 +4,7 @@ import org.springframework.cloud.service.common.OracleServiceInfo; public class OracleServiceInfoCreator extends RelationalServiceInfoCreator { public OracleServiceInfoCreator() { - super(new Tags(), "oracle"); + super(new Tags(), OracleServiceInfo.URI_SCHEME); } @Override diff --git a/spring-cloud-core/src/main/java/org/springframework/cloud/service/common/OracleServiceInfo.java b/spring-cloud-core/src/main/java/org/springframework/cloud/service/common/OracleServiceInfo.java index 13e0f49..8aef0c4 100644 --- a/spring-cloud-core/src/main/java/org/springframework/cloud/service/common/OracleServiceInfo.java +++ b/spring-cloud-core/src/main/java/org/springframework/cloud/service/common/OracleServiceInfo.java @@ -5,8 +5,10 @@ import org.springframework.cloud.service.ServiceInfo; @ServiceInfo.ServiceLabel("oracle") public class OracleServiceInfo extends RelationalServiceInfo { + public static final String URI_SCHEME = "oracle"; + public OracleServiceInfo(String id, String url) { - super(id, url, "oracle"); + super(id, url, URI_SCHEME); } @Override