com.talk2object.plum.repository.context.RepositoryContextUtils Maven / Gradle / Ivy
package com.talk2object.plum.repository.context;
import com.talk2object.common.ApplicationContextUtils;
import com.talk2object.plum.repository.biz.interafce.Repository;
public class RepositoryContextUtils {
public static final String KEY_REPOSITORY = "Repository";
private static Object get(String key) {
return ApplicationContextUtils.getApplicationContext().get(key);
}
private static void set(String key, Object value) {
ApplicationContextUtils.getApplicationContext().set(key, value);
}
public static Repository getRepository() {
return (Repository) get(KEY_REPOSITORY);
}
public static void setRepository(Repository repository) {
set(KEY_REPOSITORY, repository);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy