You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/02/20 13:24:11 UTC

svn commit: r379116 - in /incubator/servicemix/trunk/servicemix-bpe/src/main: java/org/apache/servicemix/bpe/uuid/ java/org/apache/servicemix/bpe/uuid/ActiveMQUUIDService.java resources/bpeEngine.properties

Author: gnodet
Date: Mon Feb 20 04:24:09 2006
New Revision: 379116

URL: http://svn.apache.org/viewcvs?rev=379116&view=rev
Log:
Add ActiveMQUUIDService for BPE (ActiveMQ is already an SM dependency)

Added:
    incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/uuid/
    incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/uuid/ActiveMQUUIDService.java
Modified:
    incubator/servicemix/trunk/servicemix-bpe/src/main/resources/bpeEngine.properties

Added: incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/uuid/ActiveMQUUIDService.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/uuid/ActiveMQUUIDService.java?rev=379116&view=auto
==============================================================================
--- incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/uuid/ActiveMQUUIDService.java (added)
+++ incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/uuid/ActiveMQUUIDService.java Mon Feb 20 04:24:09 2006
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.bpe.uuid;
+
+import org.apache.activemq.util.IdGenerator;
+import org.apache.ode.util.BPEProperties;
+import org.apache.ode.uuid.UUIDService;
+import org.apache.ode.uuid.UUIDServiceException;
+
+
+public class ActiveMQUUIDService implements UUIDService {
+
+    private IdGenerator idGenerator;
+    
+    public ActiveMQUUIDService() {
+        idGenerator = new IdGenerator();
+    }
+
+    public String getUUID() {
+        return idGenerator.generateId();
+    }
+
+    public void init(BPEProperties props) throws UUIDServiceException {
+    }
+
+    public void close() {
+    }
+
+}

Modified: incubator/servicemix/trunk/servicemix-bpe/src/main/resources/bpeEngine.properties
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-bpe/src/main/resources/bpeEngine.properties?rev=379116&r1=379115&r2=379116&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-bpe/src/main/resources/bpeEngine.properties (original)
+++ incubator/servicemix/trunk/servicemix-bpe/src/main/resources/bpeEngine.properties Mon Feb 20 04:24:09 2006
@@ -16,3 +16,4 @@
 EXTERNAL_ACTION_BPE_IMPLEMENTATION_KEY=org.apache.servicemix.bpe.external.JbiExternalAction
 EXTERNAL_ACTION_DEFAULT_IMPLEMENTATION_KEY=org.apache.servicemix.bpe.external.JbiInvokeAction
 BPETIMER_CLASS_KEY=org.apache.servicemix.bpe.timer.BPETimerServiceJdk
+UUID_CLASS_KEY=org.apache.servicemix.bpe.uuid.ActiveMQUUIDService