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

chao.java.tools.servicepool.PathServices Maven / Gradle / Ivy

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

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author luqin
 * @since 2019-09-18
 */
public abstract class PathServices extends DefaultService implements IPathService {

    private Map> pathServices;

    public PathServices() {
        pathServices = new ConcurrentHashMap<>();
    }

    @Override
    public void put(String path, Class service) {
        pathServices.put(path, service);
    }

    @Override
    public Class get(String path) {
        return pathServices.get(path);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy