com.maxleap.code.MLClassManagerFactory Maven / Gradle / Ivy
package com.maxleap.code;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* stream
*/
public final class MLClassManagerFactory {
private static Map, MLClassManager> managerMap = new ConcurrentHashMap, MLClassManager>();
public static void putManager(Class clazz, MLClassManager entityManager) {
managerMap.put(clazz, entityManager);
}
public static MLClassManager getManager(Class clazz) {
return (MLClassManager) managerMap.get(clazz);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy