summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-07-06 04:15:33 (EDT)
committerEike Stepper2007-07-06 04:15:33 (EDT)
commitf6d868a4b44980e1a44de1a70c00d3ed814a1323 (patch)
treec6eea84cc3cd3be0270ac0f71fee0422e0a07932
parent1b6604544a98569b95a633e685ab70f4ec5e5ee3 (diff)
downloadcdo-f6d868a4b44980e1a44de1a70c00d3ed814a1323.zip
cdo-f6d868a4b44980e1a44de1a70c00d3ed814a1323.tar.gz
cdo-f6d868a4b44980e1a44de1a70c00d3ed814a1323.tar.bz2
task 1: Develop 0.8.0
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryManagerImpl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryManagerImpl.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryManagerImpl.java
index c823fd6..af53e05 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryManagerImpl.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RepositoryManagerImpl.java
@@ -18,21 +18,21 @@ import java.util.Map;
/**
* @author Eike Stepper
*/
-public class RepositoryManagerImpl implements RepositoryManager
+public final class RepositoryManagerImpl implements RepositoryManager
{
// @Singleton
public static final RepositoryManagerImpl INSTANCE = new RepositoryManagerImpl();
private Map<String, RepositoryImpl> repositories = new HashMap();
- public RepositoryManagerImpl()
+ private RepositoryManagerImpl()
{
}
- public RepositoryImpl getRepository(String name)
+ public RepositoryImpl getRepository(String name, boolean createOnDemand)
{
RepositoryImpl repository = repositories.get(name);
- if (repository == null)
+ if (repository == null && createOnDemand)
{
repository = openRepository(name);
repositories.put(name, repository);