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(); }