package org.springframework.cloud.service;

/**
 *
 * @author Ramnivas Laddad
 *
 * @param <SC>
 *            service connector type
 * @param <SI>
 *            service info type
 */
public interface ServiceConnectorCreator<SC, SI extends ServiceInfo> {
    /**
     * Create service for the given service info and configured with the given
     * configuration
     *
     * @param serviceInfo
     *            the {@link ServiceInfo} object containing the information necessary to connect to the service
     * @param serviceConnectorConfig
     *            configuration information to be applied to the connection
     * @return service connector
     */
    SC create(SI serviceInfo, ServiceConnectorConfig serviceConnectorConfig);

    Class<SC> getServiceConnectorType();

    Class<?> getServiceInfoType();
}

@@ -37,16 +37,113 @@
 rvice;%0A%0A
+import javax.sql.DataSource;%0A%0Aimport org.springframework.cloud.service.common.MysqlServiceInfo;%0A%0A
 /**%0A *%0A 
@@ -839,45 +839,329 @@
     
-Class%3CSC%3E getServiceConnectorType();%0A
+/**%0A     * Get the type of connector created (such as %7B@link DataSource%7D)%0A     * %0A     * @return service connector type%0A     */%0A    Class%3CSC%3E getServiceConnectorType();%0A%0A    /**%0A     * Get the service info type this creator can work with (such as %7B@link MysqlServiceInfo%7D)%0A     * %0A     * @return service info type%0A     */
 %0A   

Enhance documentation for ServiceConnectorCreator (fix #51)