// Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/client/AbstractThriftClientKeyMapper.java
// public abstract class AbstractThriftClientKeyMapper {
//     abstract public Map<String, ThriftClientKey> getMappings();
// }
// 
// Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/client/pool/ThriftClientKey.java
// @Builder
// @EqualsAndHashCode
// public class ThriftClientKey {
//     private Class<? extends TServiceClient> clazz;
//     private String serviceName;
//     private String path;
// 
//     public String getServiceName() {
//         if (StringUtils.isEmpty(serviceName))
//             return WordUtils.uncapitalize(clazz.getEnclosingClass().getSimpleName());
//         return serviceName;
//     }
// 
//     public Class<? extends TServiceClient> getClazz() {
//         return clazz;
//     }
// 
//     public String getPath() {
//         return path;
//     }
// }


import example.TGreetingService;
import info.developerblog.spring.thrift.client.AbstractThriftClientKeyMapper;
import info.developerblog.spring.thrift.client.pool.ThriftClientKey;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Component;
package info.developerblog.examples.thirft.simpleclient;


/**
 * @author jihor (jihor@ya.ru)
 * Created on 2016-06-14
 */
@Component
public class SampleMapper extends AbstractThriftClientKeyMapper {

// Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/client/AbstractThriftClientKeyMapper.java
// public abstract class AbstractThriftClientKeyMapper {
//     abstract public Map<String, ThriftClientKey> getMappings();
// }
// 
// Path: autoconfigure/src/main/java/info/developerblog/spring/thrift/client/pool/ThriftClientKey.java
// @Builder
// @EqualsAndHashCode
// public class ThriftClientKey {
//     private Class<? extends TServiceClient> clazz;
//     private String serviceName;
//     private String path;
// 
//     public String getServiceName() {
//         if (StringUtils.isEmpty(serviceName))
//             return WordUtils.uncapitalize(clazz.getEnclosingClass().getSimpleName());
//         return serviceName;
//     }
// 
//     public Class<? extends TServiceClient> getClazz() {
//         return clazz;
//     }
// 
//     public String getPath() {
//         return path;
//     }
// }


// Path: examples/simple-client/src/main/java/info/developerblog/examples/thirft/simpleclient/SampleMapper.java
import example.TGreetingService;
import info.developerblog.spring.thrift.client.AbstractThriftClientKeyMapper;
import info.developerblog.spring.thrift.client.pool.ThriftClientKey;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Component;

package info.developerblog.examples.thirft.simpleclient;


/**
 * @author jihor (jihor@ya.ru)
 * Created on 2016-06-14
 */
@Component
public class SampleMapper extends AbstractThriftClientKeyMapper {

    protected HashMap<String, ThriftClientKey> mappings = new HashMap<>();