Enhance documentation for ServiceConnectorCreator (fix #51)

This commit is contained in:
Ramnivas Laddad
2014-07-25 11:09:11 -07:00
parent fb85510432
commit fab2d64482

View File

@@ -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, SI extends ServiceInfo> {
*/
SC create(SI serviceInfo, ServiceConnectorConfig serviceConnectorConfig);
/**
* Get the type of connector created (such as {@link DataSource})
*
* @return service connector type
*/
Class<SC> getServiceConnectorType();
/**
* Get the service info type this creator can work with (such as {@link MysqlServiceInfo})
*
* @return service info type
*/
Class<?> getServiceInfoType();
}