From fab2d644826bf4cc2ff72d4eb9dfb37f22f5ff98 Mon Sep 17 00:00:00 2001 From: Ramnivas Laddad Date: Fri, 25 Jul 2014 11:09:11 -0700 Subject: [PATCH] Enhance documentation for ServiceConnectorCreator (fix #51) --- .../cloud/service/ServiceConnectorCreator.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spring-cloud-core/src/main/java/org/springframework/cloud/service/ServiceConnectorCreator.java b/spring-cloud-core/src/main/java/org/springframework/cloud/service/ServiceConnectorCreator.java index 0143008..627360d 100644 --- a/spring-cloud-core/src/main/java/org/springframework/cloud/service/ServiceConnectorCreator.java +++ b/spring-cloud-core/src/main/java/org/springframework/cloud/service/ServiceConnectorCreator.java @@ -1,5 +1,9 @@ package org.springframework.cloud.service; +import javax.sql.DataSource; + +import org.springframework.cloud.service.common.MysqlServiceInfo; + /** * * @author Ramnivas Laddad @@ -22,7 +26,17 @@ public interface ServiceConnectorCreator { */ SC create(SI serviceInfo, ServiceConnectorConfig serviceConnectorConfig); + /** + * Get the type of connector created (such as {@link DataSource}) + * + * @return service connector type + */ Class getServiceConnectorType(); + /** + * Get the service info type this creator can work with (such as {@link MysqlServiceInfo}) + * + * @return service info type + */ Class getServiceInfoType(); }