All Downloads are FREE. Search and download functionalities are using the official Maven repository.

chao.java.tools.servicepool.cache.Specific Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
package chao.java.tools.servicepool.cache;

import chao.java.tools.servicepool.IService;

/**
 * @author luqin
 * @since 2020-07-23
 */
public final class Specific extends AbsServiceCacheStrategy {

    private T service;

    public Specific(T service) {
        this.service = service;
    }

    @Override
    public T getService(Class serviceClass, Class originClass) {
        return getProxyService(originClass, service);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy