tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wjaniszew...@apache.org
Subject svn commit: r685898 - in /tuscany/java/sca/modules/binding-corba-runtime/src: main/java/org/apache/tuscany/sca/binding/corba/impl/ main/java/org/apache/tuscany/sca/binding/corba/impl/service/ main/java/org/apache/tuscany/sca/binding/corba/impl/types/ m...
Date Thu, 14 Aug 2008 14:02:44 GMT
Author: wjaniszewski
Date: Thu Aug 14 07:02:41 2008
New Revision: 685898

URL: http://svn.apache.org/viewvc?rev=685898&view=rev
Log:
binding-corba* modules Code cleanup, added comments, svn headers

Modified:
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaInvoker.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/ComponentInvocationProxy.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/DynaCorbaServant.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationException.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationProxy.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/OperationTypes.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTree.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTreeCreator.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ArrayTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/BooleanTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ByteTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/CharTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/DoubleTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/EnumTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/FloatTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/IntTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/LongTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ReferenceTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/SequenceTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ShortTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StringTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StructTypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelpersProxy.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/Utils.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/MethodFinder.java
    tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/OperationMapper.java
    tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaServantTestCase.java
    tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaTypesTestCase.java
    tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MappingTestInterface.java
    tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MethodFinderTestCase.java
    tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/OperationMappingTestCase.java

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaInvoker.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaInvoker.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaInvoker.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaInvoker.java
Thu Aug 14 07:02:41 2008
@@ -66,7 +66,7 @@
                 }
             }
             if (msg.getOperation().getFaultTypes() != null) {
-                for (DataType type : msg.getOperation().getFaultTypes()) {
+                for (DataType<?> type : msg.getOperation().getFaultTypes()) {
                     request.addExceptionType(type.getPhysical());
                 }
             }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/ComponentInvocationProxy.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/ComponentInvocationProxy.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/ComponentInvocationProxy.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/ComponentInvocationProxy.java
Thu Aug 14 07:02:41 2008
@@ -36,6 +36,7 @@
 import org.apache.tuscany.sca.runtime.RuntimeWire;
 
 /**
+ * @version $Rev$ $Date$
  * Invocation proxy for SCA components
  */
 public class ComponentInvocationProxy implements InvocationProxy {
@@ -60,6 +61,7 @@
     /**
      * Maps Java methods to Tuscany operations
      */
+    @SuppressWarnings("unchecked")
     private void createMethod2OperationMapping() {
         // for every operation find all methods with the same name, then
         // compare operations and methods parameters
@@ -111,7 +113,7 @@
                 }
                 // cache input types trees
                 if (operation.getInputType() != null) {
-                    for (DataType<List<DataType>> type : operation.getInputType().getLogical())
{
+                    for (DataType<List<DataType<?>>> type : operation.getInputType().getLogical())
{
                         Class<?> forClass = type.getPhysical();
                         TypeTree inputType = TypeTreeCreator.createTypeTree(forClass, false);
                         inputInstances.add(inputType);

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/DynaCorbaServant.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/DynaCorbaServant.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/DynaCorbaServant.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/DynaCorbaServant.java
Thu Aug 14 07:02:41 2008
@@ -35,6 +35,7 @@
 import org.omg.CORBA.portable.ResponseHandler;
 
 /**
+ * @version $Rev$ $Date$
  * General servant which provides target component implementation via CORBA
  */
 public class DynaCorbaServant extends ObjectImpl implements InvokeHandler {

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationException.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationException.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationException.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationException.java
Thu Aug 14 07:02:41 2008
@@ -20,6 +20,7 @@
 package org.apache.tuscany.sca.binding.corba.impl.service;
 
 /**
+ * @version $Rev$ $Date$
  * Wrapper for exception thrown during target invocation 
  */
 public class InvocationException extends Exception {

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationProxy.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationProxy.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationProxy.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationProxy.java
Thu Aug 14 07:02:41 2008
@@ -22,6 +22,7 @@
 import java.util.List;
 
 /**
+ * @version $Rev$ $Date$
  * Target proxy interface for service bindings
  */
 public interface InvocationProxy {

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/OperationTypes.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/OperationTypes.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/OperationTypes.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/OperationTypes.java
Thu Aug 14 07:02:41 2008
@@ -23,6 +23,10 @@
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTree;
 
+/**
+ * @version $Rev$ $Date$
+ * Holder for Java type trees for one method  
+ */
 public class OperationTypes {
 
     private TypeTree outputType;

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTree.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTree.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTree.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTree.java
Thu Aug 14 07:02:41 2008
@@ -19,42 +19,17 @@
 
 package org.apache.tuscany.sca.binding.corba.impl.types;
 
-import java.util.HashMap;
-import java.util.Map;
-
 /**
- * @version $Rev$ $Date$ 
- * Helper tree for Java object hierarchy. It's closer to CORBA types structure
- * than plain Java hierarchy - it helps reading and writing complex structures.
+ * @version $Rev$ $Date$
+ *          Helper tree for Java object hierarchy. It's closer to CORBA types
+ *          structure than plain Java hierarchy - it helps reading and writing
+ *          complex structures.
  */
 public class TypeTree {
 
-    private Map<Class<?>, TypeTreeNode> typesUsed = new HashMap<Class<?>,
TypeTreeNode>();
     private TypeTreeNode rootNode;
 
     /**
-     * Intent was to cache previously computed type trees. In practice it caused
-     * a bug, and it's not being used right now. TODO: enable type trees caching
-     * 
-     * @param forClass
-     * @param node
-     */
-    public void addUsedType(Class<?> forClass, TypeTreeNode node) {
-        typesUsed.put(forClass, node);
-    }
-
-    /**
-     * Returns node for previously created tree, it's getter for nodes added by
-     * addUsedType method. Not in use right now. TODO: enable type trees caching
-     * 
-     * @param forClass
-     * @return
-     */
-    public TypeTreeNode getNodeForType(Class<?> forClass) {
-        return typesUsed.get(forClass);
-    }
-
-    /**
      * Returns root node.
      * 
      * @return root of type tree
@@ -66,8 +41,7 @@
     /**
      * Sets root of the type tree.
      * 
-     * @param rootNode
-     *            root node.
+     * @param rootNode root node.
      */
     public void setRootNode(TypeTreeNode rootNode) {
         this.rootNode = rootNode;

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTreeCreator.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTreeCreator.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTreeCreator.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTreeCreator.java
Thu Aug 14 07:02:41 2008
@@ -33,8 +33,7 @@
 
 /**
  * @version $Rev$ $Date$
- * Creator of types tree.
- * 
+ *          Creator of types tree.
  */
 public class TypeTreeCreator {
 
@@ -66,8 +65,7 @@
     /**
      * Creates class for given string argument.
      * 
-     * @param name
-     *            name of type
+     * @param name name of type
      * @return type
      */
     private static Class<?> createClassFromString(String name) {
@@ -115,8 +113,7 @@
     /**
      * Reduces dimension of array.
      * 
-     * @param forClass
-     *            array class
+     * @param forClass array class
      * @return reduced array
      */
     private static Class<?> reduceArrayDimension(Class<?> forClass) {
@@ -142,7 +139,8 @@
      * @param forClass
      * @return type tree
      */
-    public static TypeTree createTypeTree(Class<?> forClass, boolean scaBindingRules)
throws RequestConfigurationException {
+    public static TypeTree createTypeTree(Class<?> forClass, boolean scaBindingRules)
+        throws RequestConfigurationException {
         TypeTree tree = new TypeTree();
         TypeTreeNode rootNode = null;
         rootNode = inspectClassHierarchy(forClass, tree, scaBindingRules);
@@ -160,25 +158,17 @@
      */
     private static TypeTreeNode inspectClassHierarchy(Class<?> forClass, TypeTree tree,
boolean scaBindingRules)
         throws RequestConfigurationException {
-        // //remains of type tree caching
-        // TypeTreeNode existingNode = tree.getNodeForType(forClass);
-        // if (existingNode != null) {
-        // return existingNode;
-        // }
-
+        
         TypeTreeNode node = null;
         if (scaBindingRules) {
             node = createTypeNode4ScaBinding(forClass);
         } else {
             node = createTypeNode4CorbaBinding(forClass);
         }
-        
+
         NodeType nodeType = node.getNodeType();
         TypeTreeNode[] children = null;
 
-        // //remains of type tree caching
-        // tree.addUsedType(forClass, node);
-
         if (nodeType.equals(NodeType.primitive)) {
             // stop condition for recurrent method
         } else if (nodeType.equals(NodeType.array)) {
@@ -214,8 +204,7 @@
     /**
      * Creating and configuring TypeTreeNode for given class.
      * 
-     * @param forClass
-     *            class
+     * @param forClass class
      * @return node
      * @throws RequestConfigurationException
      */
@@ -249,7 +238,7 @@
         }
         return node;
     }
-    
+
     private static TypeTreeNode createTypeNode4ScaBinding(Class<?> forClass) throws
RequestConfigurationException {
         TypeTreeNode node = new TypeTreeNode();
         if (forClass.isArray()) {
@@ -298,7 +287,7 @@
             return false;
         }
         /*
-         * Are constructor args declared as class fields? 
+         * Are constructor args declared as class fields?
          */
         Field[] fields = forClass.getFields();
         Set<Class<?>> fieldsSet = new HashSet<Class<?>>(Arrays.asList(fieldsTypes));

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ArrayTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ArrayTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ArrayTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ArrayTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,7 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -29,11 +28,6 @@
  */
 public class ArrayTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        // TODO Auto-generated method stub
-        return null;
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         // TODO Auto-generated method stub
         return null;

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/BooleanTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/BooleanTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/BooleanTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/BooleanTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,8 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.ORB;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,10 +28,6 @@
  */
 public class BooleanTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        return ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(8));
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         return is.read_boolean();
     }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ByteTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ByteTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ByteTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ByteTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,8 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.ORB;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,10 +28,6 @@
  */
 public class ByteTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        return ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(10));
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         return is.read_octet();
     }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/CharTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/CharTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/CharTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/CharTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,8 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.ORB;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,10 +28,6 @@
  */
 public class CharTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        return ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(9));
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         return is.read_char();
     }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/DoubleTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/DoubleTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/DoubleTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/DoubleTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,8 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.ORB;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,10 +28,6 @@
  */
 public class DoubleTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        return ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(7));
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         return is.read_double();
     }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/EnumTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/EnumTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/EnumTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/EnumTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -3,17 +3,14 @@
 import java.lang.reflect.Method;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
+/**
+ * @version $Rev$ $Date$
+ */
 public class EnumTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        // TODO Auto-generated method stub
-        return null;
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         int value = is.read_long();
         Object result = null;

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/FloatTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/FloatTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/FloatTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/FloatTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,8 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.ORB;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,10 +28,6 @@
  */
 public class FloatTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        return ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(6));
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         return is.read_float();
     }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/IntTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/IntTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/IntTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/IntTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,8 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.ORB;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,10 +28,6 @@
  */
 public class IntTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        return ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3));
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         return is.read_long();
     }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/LongTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/LongTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/LongTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/LongTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,8 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.ORB;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,10 +28,6 @@
  */
 public class LongTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        return ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(23));
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         return is.read_longlong();
     }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ReferenceTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ReferenceTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ReferenceTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ReferenceTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -22,7 +22,6 @@
 import org.apache.tuscany.sca.binding.corba.impl.reference.InterfaceInstanceCreator;
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
 import org.omg.CORBA.Object;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -31,11 +30,6 @@
  */
 public class ReferenceTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        // TODO Auto-generated method stub
-        return null;
-    }
-
     public java.lang.Object read(TypeTreeNode node, InputStream is) {
         Object reference = is.read_Object();
         return (java.lang.Object)InterfaceInstanceCreator.createInstance(reference, node.getJavaClass());

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/SequenceTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/SequenceTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/SequenceTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/SequenceTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -25,7 +25,6 @@
 import java.util.List;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -34,17 +33,6 @@
  */
 public class SequenceTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        TypeCode typeCode =
-            org.omg.CORBA.ORB.init().create_alias_tc(node.getJavaClass().getSimpleName(),
-                                                     node.getJavaClass().getSimpleName(),
-                                                     org.omg.CORBA.ORB.init()
-                                                         .create_sequence_tc(0,
-                                                                             TypeHelpersProxy.getType(node
-                                                                                 .getChildren()[0])));
-        return typeCode;
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         Object sequence = null;
         try {

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ShortTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ShortTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ShortTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ShortTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,8 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.ORB;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,10 +28,6 @@
  */
 public class ShortTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        return ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2));
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         return is.read_short();
     }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StringTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StringTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StringTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StringTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,8 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.ORB;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,10 +28,6 @@
  */
 public class StringTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        return ORB.init().create_string_tc(0);
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         return is.read_string();
     }

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StructTypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StructTypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StructTypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StructTypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -22,8 +22,6 @@
 import java.lang.reflect.Field;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.StructMember;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -32,25 +30,6 @@
  */
 public class StructTypeHelper implements TypeHelper {
 
-    public TypeCode getType(TypeTreeNode node) {
-        TypeTreeNode[] children = node.getChildren();
-        if (children != null) {
-            StructMember[] members = new StructMember[children.length];
-            for (int i = 0; i < children.length; i++) {
-                members[i] =
-                    new StructMember(children[i].getJavaClass().getSimpleName(), TypeHelpersProxy.getType(children[i]),
-                                     null);
-            }
-            TypeCode result =
-                org.omg.CORBA.ORB.init().create_struct_tc(node.getJavaClass().getSimpleName(),
-                                                          node.getJavaClass().getSimpleName(),
-                                                          members);
-            return result;
-        } else {
-            return null;
-        }
-    }
-
     public Object read(TypeTreeNode node, InputStream is) {
         TypeTreeNode[] children = node.getChildren();
         Object result = null;

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelper.java
Thu Aug 14 07:02:41 2008
@@ -20,7 +20,6 @@
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -30,13 +29,6 @@
 public interface TypeHelper {
 
     /**
-     * Gets type definition for CORBA API.
-     * @param node 
-     * @return
-     */
-    TypeCode getType(TypeTreeNode node);
-
-    /**
      * Reads CORBA object
      * @param node
      * @param is

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelpersProxy.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelpersProxy.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelpersProxy.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelpersProxy.java
Thu Aug 14 07:02:41 2008
@@ -24,7 +24,6 @@
 
 import org.apache.tuscany.sca.binding.corba.impl.types.NodeType;
 import org.apache.tuscany.sca.binding.corba.impl.types.TypeTreeNode;
-import org.omg.CORBA.TypeCode;
 import org.omg.CORBA.portable.InputStream;
 import org.omg.CORBA.portable.OutputStream;
 
@@ -93,20 +92,6 @@
     }
 
     /**
-     * Proxies getType method invocation to appropriate TypeHelper
-     * implementation. It's not being used since I've changed method for passing
-     * arguments. May be useful while implementing CORBA service bindings.
-     * 
-     * @param node
-     * @return
-     */
-    public static final TypeCode getType(TypeTreeNode node) {
-        TypeHelper typeHelper = getTypeHelper(node);
-        TypeCode typeCode = typeHelper.getType(node);
-        return typeCode;
-    }
-
-    /**
      * Proxies read method invocation to appropriate TypeHelper implementation.
      * 
      * @param node

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/Utils.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/Utils.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/Utils.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/Utils.java
Thu Aug 14 07:02:41 2008
@@ -19,6 +19,10 @@
 
 package org.apache.tuscany.sca.binding.corba.impl.types.util;
 
+/**
+ * @version $Rev$ $Date$
+ * Class for type utilities
+ */
 public class Utils {
 
     /**

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/MethodFinder.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/MethodFinder.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/MethodFinder.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/MethodFinder.java
Thu Aug 14 07:02:41 2008
@@ -24,6 +24,7 @@
 import java.util.Map;
 
 /**
+ * @version $Rev$ $Date$
  * Utility for finding method in given class.
  */
 public class MethodFinder {

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/OperationMapper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/OperationMapper.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/OperationMapper.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/OperationMapper.java
Thu Aug 14 07:02:41 2008
@@ -54,11 +54,21 @@
         return allInterfaces;
     }
     
+    /**
+     * Maps Java methods to operation names
+     * @param intfClass
+     * @return
+     */
     @SuppressWarnings("unchecked")
     public static Map<Method, String> mapMethodToOperation(Class<?> intfClass)
{
         return iiopMap(intfClass, false);
     }
 
+    /**
+     * Maps operation names to Java methods
+     * @param intfClass
+     * @return
+     */
     @SuppressWarnings("unchecked")
     public static Map<String, Method> mapOperationToMethod(Class<?> intfClass)
{
         return iiopMap(intfClass, true);

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaServantTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaServantTestCase.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaServantTestCase.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaServantTestCase.java
Thu Aug 14 07:02:41 2008
@@ -72,6 +72,10 @@
 import org.omg.CosNaming.NamingContext;
 import org.omg.CosNaming.NamingContextHelper;
 
+/**
+ * @version $Rev$ $Date$
+ * Tests API for dynamic CORBA servants
+ */
 public class CorbaServantTestCase {
 
     private static ORB orb;
@@ -487,7 +491,7 @@
             //expecting exception...
             Class<?> javaClass = ((JavaInterface)service.getInterfaceContract().getInterface()).getJavaClass();
             InvocationProxy proxy = new ComponentInvocationProxy(service, service.getRuntimeWire(null),
javaClass);
-            DynaCorbaServant servant = new DynaCorbaServant(proxy, Utils.getTypeId(javaClass));
+            new DynaCorbaServant(proxy, Utils.getTypeId(javaClass));
             fail();
         } catch (Exception e) {
             if (e instanceof RequestConfigurationException) {

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaTypesTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaTypesTestCase.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaTypesTestCase.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaTypesTestCase.java
Thu Aug 14 07:02:41 2008
@@ -66,6 +66,7 @@
 
 /**
  * @version $Rev$ $Date$
+ * Tests API for dynamic CORBA requests. Tests handling various Java types.
  */
 public class CorbaTypesTestCase {
     private static TransientNameServer server;

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MappingTestInterface.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MappingTestInterface.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MappingTestInterface.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MappingTestInterface.java
Thu Aug 14 07:02:41 2008
@@ -20,6 +20,7 @@
 package org.apache.tuscany.sca.binding.corba.testing;
 
 /**
+ * @version $Rev$ $Date$
  * Interface that can be tested for operations mapping
  */
 public interface MappingTestInterface {

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MethodFinderTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MethodFinderTestCase.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MethodFinderTestCase.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MethodFinderTestCase.java
Thu Aug 14 07:02:41 2008
@@ -28,6 +28,7 @@
 import org.junit.Test;
 
 /**
+ * @version $Rev$ $Date$
  * Various tests for MethodFinder
  */
 public class MethodFinderTestCase {

Modified: tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/OperationMappingTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/OperationMappingTestCase.java?rev=685898&r1=685897&r2=685898&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/OperationMappingTestCase.java
(original)
+++ tuscany/java/sca/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/OperationMappingTestCase.java
Thu Aug 14 07:02:41 2008
@@ -28,6 +28,7 @@
 import org.junit.Test;
 
 /**
+ * @version $Rev$ $Date$
  * Various tests for OperationsMapping
  */
 public class OperationMappingTestCase {



Mime
View raw message