You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rg...@apache.org on 2013/07/18 23:42:51 UTC

svn commit: r1504675 - in /qpid/proton/trunk/proton-c/bindings/java/src/main: java/org/apache/qpid/proton/driver/ java/org/apache/qpid/proton/driver/jni/ resources/META-INF/services/

Author: rgodfrey
Date: Thu Jul 18 21:42:51 2013
New Revision: 1504675

URL: http://svn.apache.org/r1504675
Log:
PROTON-359 : [Proton-j] Create a simple entry point for creating all Proton entities

Added:
    qpid/proton/trunk/proton-c/bindings/java/src/main/java/org/apache/qpid/proton/driver/
    qpid/proton/trunk/proton-c/bindings/java/src/main/java/org/apache/qpid/proton/driver/jni/
    qpid/proton/trunk/proton-c/bindings/java/src/main/java/org/apache/qpid/proton/driver/jni/JNIDriverFactory.java
    qpid/proton/trunk/proton-c/bindings/java/src/main/resources/META-INF/services/org.apache.qpid.proton.driver.DriverFactory
      - copied, changed from r1504506, qpid/proton/trunk/proton-c/bindings/java/src/main/resources/META-INF/services/org.apache.qpid.proton.codec.DataFactory

Added: qpid/proton/trunk/proton-c/bindings/java/src/main/java/org/apache/qpid/proton/driver/jni/JNIDriverFactory.java
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/java/src/main/java/org/apache/qpid/proton/driver/jni/JNIDriverFactory.java?rev=1504675&view=auto
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/java/src/main/java/org/apache/qpid/proton/driver/jni/JNIDriverFactory.java (added)
+++ qpid/proton/trunk/proton-c/bindings/java/src/main/java/org/apache/qpid/proton/driver/jni/JNIDriverFactory.java Thu Jul 18 21:42:51 2013
@@ -0,0 +1,41 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.qpid.proton.driver.jni;
+
+import java.io.IOException;
+import org.apache.qpid.proton.ProtonUnsupportedOperationException;
+import org.apache.qpid.proton.driver.Driver;
+import org.apache.qpid.proton.driver.DriverFactory;
+
+public class JNIDriverFactory implements DriverFactory
+{
+    @Override
+    public Driver createDriver() throws IOException
+    {
+        throw new ProtonUnsupportedOperationException();
+    }
+
+    @Override
+    public ImplementationType getImplementationType()
+    {
+        return ImplementationType.PROTON_C;
+    }
+}

Copied: qpid/proton/trunk/proton-c/bindings/java/src/main/resources/META-INF/services/org.apache.qpid.proton.driver.DriverFactory (from r1504506, qpid/proton/trunk/proton-c/bindings/java/src/main/resources/META-INF/services/org.apache.qpid.proton.codec.DataFactory)
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/java/src/main/resources/META-INF/services/org.apache.qpid.proton.driver.DriverFactory?p2=qpid/proton/trunk/proton-c/bindings/java/src/main/resources/META-INF/services/org.apache.qpid.proton.driver.DriverFactory&p1=qpid/proton/trunk/proton-c/bindings/java/src/main/resources/META-INF/services/org.apache.qpid.proton.codec.DataFactory&r1=1504506&r2=1504675&rev=1504675&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/java/src/main/resources/META-INF/services/org.apache.qpid.proton.codec.DataFactory (original)
+++ qpid/proton/trunk/proton-c/bindings/java/src/main/resources/META-INF/services/org.apache.qpid.proton.driver.DriverFactory Thu Jul 18 21:42:51 2013
@@ -1 +1 @@
-org.apache.qpid.proton.codec.jni.JNIDataFactory
\ No newline at end of file
+org.apache.qpid.proton.driver.jni.JNIDriverFactory



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org