Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-09-20 17:49:10 +0000
committerEike Stepper2010-09-20 17:49:10 +0000
commit2716de0bda0e124f93c0829a080610eda5717b76 (patch)
tree05657f48a1b99bd26f09a3819757ac0457102dca /plugins/org.eclipse.emf.cdo.examples/src
parent68bf5994595c274e31b3216946873badbb12c74f (diff)
downloadcdo-2716de0bda0e124f93c0829a080610eda5717b76.tar.gz
cdo-2716de0bda0e124f93c0829a080610eda5717b76.tar.xz
cdo-2716de0bda0e124f93c0829a080610eda5717b76.zip
[325778] Provide public factory methods for CDORevisionManager instances
https://bugs.eclipse.org/bugs/show_bug.cgi?id=325778
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples/src')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailOverExample.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailOverExample.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailOverExample.java
index c1f50dda3b..db423383e4 100644
--- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailOverExample.java
+++ b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailOverExample.java
@@ -11,8 +11,8 @@
package org.eclipse.emf.cdo.examples.server;
import org.eclipse.emf.cdo.common.CDOCommonRepository.Type;
+import org.eclipse.emf.cdo.common.revision.CDORevisionUtil;
import org.eclipse.emf.cdo.common.revision.cache.CDORevisionCache;
-import org.eclipse.emf.cdo.internal.common.revision.CDORevisionManagerImpl;
import org.eclipse.emf.cdo.net4j.CDONet4jUtil;
import org.eclipse.emf.cdo.net4j.CDOSessionConfiguration;
import org.eclipse.emf.cdo.server.CDOServerUtil;
@@ -23,7 +23,6 @@ import org.eclipse.emf.cdo.server.db.CDODBUtil;
import org.eclipse.emf.cdo.server.db.mapping.IMappingStrategy;
import org.eclipse.emf.cdo.server.net4j.CDONet4jServerUtil;
import org.eclipse.emf.cdo.session.CDOSessionConfigurationFactory;
-import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionManager;
import org.eclipse.emf.cdo.spi.server.InternalRepository;
import org.eclipse.net4j.Net4jUtil;
@@ -253,9 +252,7 @@ public abstract class FailOverExample
CDOSessionConfiguration configuration = CDONet4jUtil.createSessionConfiguration();
configuration.setConnector(connector);
configuration.setRepositoryName(peerRepository);
- InternalCDORevisionManager revisionManager = new CDORevisionManagerImpl();
- revisionManager.setCache(CDORevisionCache.NOOP);
- configuration.setRevisionManager(revisionManager);
+ configuration.setRevisionManager(CDORevisionUtil.createRevisionManager(CDORevisionCache.NOOP));
return configuration;
}
};

Back to the top