/
akolonin
/
aigents-java
Обзор
Документация
Войти
/
akolonin
/
aigents-java
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/net/webstructor/mine/inf/InfServer.java
37 строк
1005 B
Anton Kolonin
Manually merging changes as suggested by https://github.com/rssdev10/aigents-java/commit/aee40c39eacd2279bc562e224d2d24c4ff7d98c0
03 янв 2019, 17:27
03 янв 2019, 17:27
d436abd
Код
Авторство
О чём код?
/* * Copyright 2005-2008, Anton Kolonin, * All rights reserved. * * This software is proprietary information belonging to Anton Kolonin. * You shall not disclose this and shall not use it in any way * without of written permission granted by Anton Kolonin. */ package net.webstructor.mine.inf; import java.util.Hashtable; import net.webstructor.mine.auth.StoreSchema; import net.webstructor.mine.store.SimpleMemoryStorage; import net.webstructor.mine.store.Storage; public class InfServer { static Hashtable m_instances = new Hashtable(); public static InfServer getInstance(String path) throws Exception { Object instance = m_instances.get(path); if (instance == null) { instance = new InfServer(path); m_instances.put(path,instance); } return (InfServer)instance; } Storage m_storage = null; InfServer(String path) throws Exception { m_storage = new SimpleMemoryStorage(); m_storage.startUp(path,new StoreSchema()); } }