summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-15 02:57:45 (EDT)
committerEike Stepper2007-09-15 02:57:45 (EDT)
commitf3c35bcad0b4e54f95b7176a85811a6b9ae3a646 (patch)
tree150e5379873729572b755af9fae150e5cb47f1a7
parent7a5a8945e19a6d05f9c64beae5b7e6f55a295d87 (diff)
downloadcdo-f3c35bcad0b4e54f95b7176a85811a6b9ae3a646.zip
cdo-f3c35bcad0b4e54f95b7176a85811a6b9ae3a646.tar.gz
cdo-f3c35bcad0b4e54f95b7176a85811a6b9ae3a646.tar.bz2
[203406] Develop an ECF provider with Net4j
https://bugs.eclipse.org/bugs/show_bug.cgi?id=203406
-rw-r--r--plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/NOOPStore.java (renamed from plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/EmptyStore.java)8
-rw-r--r--plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/NOOPTransaction.java (renamed from plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/EmptyTransaction.java)4
-rw-r--r--plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/server/JMSServerUtil.java6
3 files changed, 12 insertions, 6 deletions
diff --git a/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/EmptyStore.java b/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/NOOPStore.java
index ca09597..3c64321 100644
--- a/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/EmptyStore.java
+++ b/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/NOOPStore.java
@@ -15,11 +15,11 @@ import org.eclipse.net4j.jms.server.IStoreTransaction;
/**
* @author Eike Stepper
*/
-public class EmptyStore extends AbstractStore
+public class NOOPStore extends AbstractStore
{
- private static final String STORE_TYPE = "EMPTY";
+ private static final String STORE_TYPE = "NOOP";
- public EmptyStore()
+ public NOOPStore()
{
super(STORE_TYPE);
setInstanceID(STORE_TYPE);
@@ -27,7 +27,7 @@ public class EmptyStore extends AbstractStore
public IStoreTransaction startTransaction()
{
- return new EmptyTransaction(this);
+ return new NOOPTransaction(this);
}
public void commitTransaction(IStoreTransaction transaction)
diff --git a/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/EmptyTransaction.java b/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/NOOPTransaction.java
index bec2373..b9fc570 100644
--- a/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/EmptyTransaction.java
+++ b/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/internal/server/store/NOOPTransaction.java
@@ -17,9 +17,9 @@ import org.eclipse.net4j.jms.internal.server.ServerDestination;
/**
* @author Eike Stepper
*/
-public class EmptyTransaction extends AbstractTransaction
+public class NOOPTransaction extends AbstractTransaction
{
- public EmptyTransaction(AbstractStore store)
+ public NOOPTransaction(AbstractStore store)
{
super(store);
}
diff --git a/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/server/JMSServerUtil.java b/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/server/JMSServerUtil.java
index d8b55d8..a022ca1 100644
--- a/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/server/JMSServerUtil.java
+++ b/plugins/org.eclipse.net4j.jms.server/src/org/eclipse/net4j/jms/server/JMSServerUtil.java
@@ -12,6 +12,7 @@ package org.eclipse.net4j.jms.server;
import org.eclipse.net4j.jms.internal.server.protocol.JMSServerProtocolFactory;
import org.eclipse.net4j.jms.internal.server.protocol.admin.JMSAdminServerProtocolFactory;
+import org.eclipse.net4j.jms.internal.server.store.NOOPStore;
import org.eclipse.net4j.util.container.IManagedContainer;
/**
@@ -28,4 +29,9 @@ public final class JMSServerUtil
container.registerFactory(new JMSServerProtocolFactory());
container.registerFactory(new JMSAdminServerProtocolFactory());
}
+
+ public static IStore createNOOPStore()
+ {
+ return new NOOPStore();
+ }
}