You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/04/11 01:02:56 UTC

svn commit: r527336 [2/2] - in /incubator/tuscany/java/sca/modules: assembly-xml/src/main/java/org/apache/tuscany/assembly/xml/impl/ assembly/src/main/java/org/apache/tuscany/assembly/ assembly/src/main/java/org/apache/tuscany/assembly/impl/ assembly/s...

Modified: incubator/tuscany/java/sca/modules/implementation-java-xml/src/main/java/org/apache/tuscany/implementation/java/processor/HeuristicPojoProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-java-xml/src/main/java/org/apache/tuscany/implementation/java/processor/HeuristicPojoProcessor.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-java-xml/src/main/java/org/apache/tuscany/implementation/java/processor/HeuristicPojoProcessor.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-java-xml/src/main/java/org/apache/tuscany/implementation/java/processor/HeuristicPojoProcessor.java Tue Apr 10 16:02:52 2007
@@ -437,7 +437,7 @@
      */
     private boolean isInServiceInterface(Method operation, List<org.apache.tuscany.assembly.Service> services) {
         for (org.apache.tuscany.assembly.Service service : services) {
-            Interface interface1 = service.getInterface();
+            Interface interface1 = service.getInterfaceContract().getInterface();
             if (interface1 instanceof JavaInterface) {
                 Class<?> clazz = ((JavaInterface)interface1).getJavaClass();
                 if (isMethodMatched(clazz, operation)) {
@@ -590,9 +590,9 @@
         org.apache.tuscany.assembly.Service service = factory.createService();
         service.setName(interfaze.getSimpleName());
         interfaceProcessorRegistry.introspect(service, interfaze);
-        Interface javaInterface = service.getInterface();
+        Interface javaInterface = service.getInterfaceContract().getInterface();
         javaInterface.setRemotable(interfaze.getAnnotation(Remotable.class) != null);
-        service.setInterface(javaInterface);
+        service.getInterfaceContract().setInterface(javaInterface);
         return service;
     }
 
@@ -602,7 +602,7 @@
             Class<?> callbackClass = callback.value();
             JavaInterface javaInterface = javaFactory.createJavaInterface();
             javaInterface.setJavaClass(callbackClass);
-            contract.setCallbackInterface(javaInterface);
+            contract.getInterfaceContract().setCallbackInterface(javaInterface);
         } else if (callback != null && Void.class.equals(callback.value())) {
             throw new InvalidServiceType("No callback interface specified on annotation", interfaze);
         }

Modified: incubator/tuscany/java/sca/modules/implementation-java-xml/src/main/java/org/apache/tuscany/implementation/java/processor/ServiceProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-java-xml/src/main/java/org/apache/tuscany/implementation/java/processor/ServiceProcessor.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-java-xml/src/main/java/org/apache/tuscany/implementation/java/processor/ServiceProcessor.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-java-xml/src/main/java/org/apache/tuscany/implementation/java/processor/ServiceProcessor.java Tue Apr 10 16:02:52 2007
@@ -99,7 +99,7 @@
         Service callbackService = null;
         Class<?> callbackClass = method.getParameterTypes()[0];
         for (Service service : type.getServices()) {
-            JavaInterface javaInterface = (JavaInterface)service.getCallbackInterface();
+            JavaInterface javaInterface = (JavaInterface)service.getInterfaceContract().getCallbackInterface();
             if (callbackClass == javaInterface.getJavaClass()) {
                 callbackService = service;
             }
@@ -120,7 +120,7 @@
         Service callbackService = null;
         Class<?> callbackClass = field.getType();
         for (Service service : type.getServices()) {
-            JavaInterface javaInterface = (JavaInterface)service.getCallbackInterface();
+            JavaInterface javaInterface = (JavaInterface)service.getInterfaceContract().getCallbackInterface();
             if (callbackClass == javaInterface.getJavaClass()) {
                 callbackService = service;
             }

Modified: incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ModelHelper.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ModelHelper.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ModelHelper.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ModelHelper.java Tue Apr 10 16:02:52 2007
@@ -27,11 +27,12 @@
 import org.apache.tuscany.assembly.Service;
 import org.apache.tuscany.assembly.impl.DefaultAssemblyFactory;
 import org.apache.tuscany.implementation.java.impl.JavaImplementationDefinition;
-import org.apache.tuscany.implementation.java.processor.HeuristicConstructorTestCase.Foo1;
 import org.apache.tuscany.interfacedef.Interface;
 import org.apache.tuscany.interfacedef.java.JavaFactory;
 import org.apache.tuscany.interfacedef.java.JavaInterface;
+import org.apache.tuscany.interfacedef.java.JavaInterfaceContract;
 import org.apache.tuscany.interfacedef.java.impl.DefaultJavaFactory;
+import org.apache.tuscany.interfacedef.java.impl.JavaInterfaceContractImpl;
 import org.apache.tuscany.interfacedef.java.impl.JavaInterfaceImpl;
 
 /**
@@ -69,7 +70,7 @@
     }
 
     public static boolean matches(Contract contract, Class<?> type) {
-        Interface interface1 = contract.getInterface();
+        Interface interface1 = contract.getInterfaceContract().getInterface();
         if (interface1 instanceof JavaInterface) {
             return type == ((JavaInterface)interface1).getJavaClass();
         } else {
@@ -82,7 +83,9 @@
         ref.setName(type.getSimpleName());
         JavaInterface i = new JavaInterfaceImpl();
         i.setJavaClass(type);
-        ref.setInterface(i);
+        JavaInterfaceContract ic = new JavaInterfaceContractImpl();
+        ic.setInterface(i);
+        ref.setInterfaceContract(ic);
         return ref;
     }
 
@@ -91,7 +94,9 @@
         ref.setName(name);
         JavaInterface i = new JavaInterfaceImpl();
         i.setJavaClass(type);
-        ref.setInterface(i);
+        JavaInterfaceContract ic = new JavaInterfaceContractImpl();
+        ic.setInterface(i);
+        ref.setInterfaceContract(ic);
         return ref;
     }
 

Modified: incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ReferenceProcessorTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ReferenceProcessorTestCase.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ReferenceProcessorTestCase.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ReferenceProcessorTestCase.java Tue Apr 10 16:02:52 2007
@@ -46,7 +46,7 @@
         processor.visitMethod(ReferenceProcessorTestCase.Foo.class.getMethod("setFoo", Ref.class), type);
         org.apache.tuscany.assembly.Reference reference = getReference(type, "foo");
         assertNotNull(reference);
-        assertEquals(Ref.class, ((JavaInterface)reference.getInterface()).getJavaClass());
+        assertEquals(Ref.class, ((JavaInterface)reference.getInterfaceContract().getInterface()).getJavaClass());
     }
 
     public void testMethodRequired() throws Exception {
@@ -65,7 +65,7 @@
         processor.visitField(ReferenceProcessorTestCase.Foo.class.getDeclaredField("baz"), type);
         org.apache.tuscany.assembly.Reference reference = getReference(type, "baz");
         assertNotNull(reference);
-        assertEquals(Ref.class, ((JavaInterface)reference.getInterface()).getJavaClass());
+        assertEquals(Ref.class, ((JavaInterface)reference.getInterfaceContract().getInterface()).getJavaClass());
     }
 
     public void testFieldRequired() throws Exception {
@@ -185,7 +185,7 @@
         processor.visitField(Multiple.class.getDeclaredField("refs1"), type);
         org.apache.tuscany.assembly.Reference ref = getReference(type, "refs1");
         assertNotNull(ref);
-        assertSame(Ref.class, ((JavaInterface)ref.getInterface()).getJavaClass());
+        assertSame(Ref.class, ((JavaInterface)ref.getInterfaceContract().getInterface()).getJavaClass());
         assertEquals(Multiplicity.ONE_N, ref.getMultiplicity());
         // assertEquals(Multiplicity.ONE_ONE, ref.getMultiplicity());
     }
@@ -194,7 +194,7 @@
         processor.visitField(Multiple.class.getDeclaredField("refs2"), type);
         org.apache.tuscany.assembly.Reference ref = getReference(type, "refs2");
         assertNotNull(ref);
-        assertSame(Ref.class, ((JavaInterface)ref.getInterface()).getJavaClass());
+        assertSame(Ref.class, ((JavaInterface)ref.getInterfaceContract().getInterface()).getJavaClass());
         assertEquals(Multiplicity.ZERO_N, ref.getMultiplicity());
         // assertFalse(ref.isMustSupply());
     }
@@ -203,7 +203,7 @@
         processor.visitMethod(Multiple.class.getMethod("setRefs3", Ref[].class), type);
         org.apache.tuscany.assembly.Reference ref = getReference(type, "refs3");
         assertNotNull(ref);
-        assertSame(Ref.class, ((JavaInterface)ref.getInterface()).getJavaClass());
+        assertSame(Ref.class, ((JavaInterface)ref.getInterfaceContract().getInterface()).getJavaClass());
         assertEquals(Multiplicity.ONE_N, ref.getMultiplicity());
         // assertEquals(Multiplicity.ONE_ONE, ref.getMultiplicity());
     }
@@ -212,7 +212,7 @@
         processor.visitMethod(Multiple.class.getMethod("setRefs4", Collection.class), type);
         org.apache.tuscany.assembly.Reference ref = getReference(type, "refs4");
         assertNotNull(ref);
-        assertSame(Ref.class, ((JavaInterface)ref.getInterface()).getJavaClass());
+        assertSame(Ref.class, ((JavaInterface)ref.getInterfaceContract().getInterface()).getJavaClass());
         assertEquals(Multiplicity.ZERO_N, ref.getMultiplicity());
         // assertFalse(ref.isMustSupply());
     }

Modified: incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ServiceProcessorTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ServiceProcessorTestCase.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ServiceProcessorTestCase.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-java-xml/src/test/java/org/apache/tuscany/implementation/java/processor/ServiceProcessorTestCase.java Tue Apr 10 16:02:52 2007
@@ -42,8 +42,8 @@
         processor.visitClass(FooMultiple.class, type);
         assertEquals(2, type.getServices().size());
         org.apache.tuscany.assembly.Service service = ModelHelper.getService(type, Baz.class.getSimpleName());
-        assertEquals(Baz.class, ((JavaInterface)service.getInterface()).getJavaClass());
-        assertEquals(Bar.class, ((JavaInterface)service.getCallbackInterface()).getJavaClass());
+        assertEquals(Baz.class, ((JavaInterface)service.getInterfaceContract().getInterface()).getJavaClass());
+        assertEquals(Bar.class, ((JavaInterface)service.getInterfaceContract().getCallbackInterface()).getJavaClass());
         assertNotNull(ModelHelper.getService(type, Bar.class.getSimpleName()));
     }
 
@@ -70,7 +70,7 @@
         processor.visitClass(FooRemotableNoService.class, type);
         assertEquals(1, type.getServices().size());
         org.apache.tuscany.assembly.Service service = ModelHelper.getService(type, BazRemotable.class.getSimpleName());
-        assertEquals(BazRemotable.class, ((JavaInterface)service.getInterface()).getJavaClass());
+        assertEquals(BazRemotable.class, ((JavaInterface)service.getInterfaceContract().getInterface()).getJavaClass());
     }
 
     public void testNonInterface() throws Exception {

Modified: incubator/tuscany/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImpl.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImpl.java (original)
+++ incubator/tuscany/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImpl.java Tue Apr 10 16:02:52 2007
@@ -35,6 +35,7 @@
 import org.apache.tuscany.interfacedef.impl.OperationImpl;
 import org.apache.tuscany.interfacedef.java.JavaFactory;
 import org.apache.tuscany.interfacedef.java.JavaInterface;
+import org.apache.tuscany.interfacedef.java.JavaInterfaceContract;
 import org.apache.tuscany.interfacedef.java.impl.DefaultJavaFactory;
 import org.apache.tuscany.interfacedef.java.introspection.JavaInterfaceProcessor;
 import org.apache.tuscany.interfacedef.java.introspection.JavaInterfaceProcessorRegistry;
@@ -87,13 +88,15 @@
         // Scope interactionScope = type.getAnnotation(Scope.class);
         boolean conversational = type.isAnnotationPresent(Conversational.class);
         javaInterface.setConversational(conversational);
-        contract.setInterface(javaInterface);
+        JavaInterfaceContract javaInterfaceContract = javaFactory.createJavaInterfaceContract();
+        contract.setInterfaceContract(javaInterfaceContract);
+        javaInterfaceContract.setInterface(javaInterface);
         javaInterface.getOperations().addAll(getOperations(type, remotable, conversational).values());
 
         if (callback != null) {
             JavaInterface callbackInterface = javaFactory.createJavaInterface();
             callbackInterface.setJavaClass(callback);
-            contract.setCallbackInterface(callbackInterface);
+            javaInterfaceContract.setCallbackInterface(callbackInterface);
             callbackInterface.getOperations().addAll(getOperations(callback, remotable, conversational).values());
         }
 

Modified: incubator/tuscany/java/sca/modules/interface-java-xml/src/test/java/org/apache/tuscany/interfacedef/java/introspection/impl/ConversationalIntrospectionTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-java-xml/src/test/java/org/apache/tuscany/interfacedef/java/introspection/impl/ConversationalIntrospectionTestCase.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-java-xml/src/test/java/org/apache/tuscany/interfacedef/java/introspection/impl/ConversationalIntrospectionTestCase.java (original)
+++ incubator/tuscany/java/sca/modules/interface-java-xml/src/test/java/org/apache/tuscany/interfacedef/java/introspection/impl/ConversationalIntrospectionTestCase.java Tue Apr 10 16:02:52 2007
@@ -49,7 +49,7 @@
     public void testServiceContractConversationalInformationIntrospection() throws Exception {
         Contract contract = factory.createComponentService();
         registry.introspect(contract, Foo.class);
-        Interface i = contract.getInterface();
+        Interface i = contract.getInterfaceContract().getInterface();
         assertNotNull(i);
         assertTrue(i.isConversational());
         Operation.ConversationSequence seq = getOperation(i, "operation").getConversationSequence();
@@ -71,8 +71,8 @@
     public void testNonConversationalInformationIntrospection() throws Exception {
         Contract contract = factory.createComponentService();
         registry.introspect(contract, NonConversationalFoo.class);
-        assertFalse(contract.getInterface().isConversational());
-        Operation.ConversationSequence seq = getOperation(contract.getInterface(), "operation")
+        assertFalse(contract.getInterfaceContract().getInterface().isConversational());
+        Operation.ConversationSequence seq = getOperation(contract.getInterfaceContract().getInterface(), "operation")
             .getConversationSequence();
         assertEquals(Operation.ConversationSequence.NO_CONVERSATION, seq);
     }

Modified: incubator/tuscany/java/sca/modules/interface-java-xml/src/test/java/org/apache/tuscany/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImplTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-java-xml/src/test/java/org/apache/tuscany/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImplTestCase.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-java-xml/src/test/java/org/apache/tuscany/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImplTestCase.java (original)
+++ incubator/tuscany/java/sca/modules/interface-java-xml/src/test/java/org/apache/tuscany/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImplTestCase.java Tue Apr 10 16:02:52 2007
@@ -50,7 +50,7 @@
         Contract contract = factory.createComponentService();
         impl.introspect(contract, Simple.class);
 
-        JavaInterface intf = (JavaInterface)contract.getInterface();
+        JavaInterface intf = (JavaInterface)contract.getInterfaceContract().getInterface();
 
         assertEquals(Simple.class, intf.getJavaClass());
         List<Operation> operations = intf.getOperations();

Modified: incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaFactory.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaFactory.java (original)
+++ incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaFactory.java Tue Apr 10 16:02:52 2007
@@ -31,5 +31,12 @@
      * @return
      */
     JavaInterface createJavaInterface();
+    
+    /**
+     * Creates a new Java interface contract.
+     * 
+     * @return
+     */
+    JavaInterfaceContract createJavaInterfaceContract();
 
 }

Added: incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaInterfaceContract.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaInterfaceContract.java?view=auto&rev=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaInterfaceContract.java (added)
+++ incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaInterfaceContract.java Tue Apr 10 16:02:52 2007
@@ -0,0 +1,32 @@
+/*
+ * 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.tuscany.interfacedef.java;
+
+import org.apache.tuscany.interfacedef.InterfaceContract;
+
+/**
+ * Represents a Java interface contract.
+ * JavaInterfaceContract
+ *
+ * @version $Rev$ $Date$
+ */
+public interface JavaInterfaceContract extends InterfaceContract {
+
+}

Propchange: incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaInterfaceContract.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/JavaInterfaceContract.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/DefaultJavaFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/DefaultJavaFactory.java?view=diff&rev=527336&r1=527335&r2=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/DefaultJavaFactory.java (original)
+++ incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/DefaultJavaFactory.java Tue Apr 10 16:02:52 2007
@@ -20,6 +20,7 @@
 
 import org.apache.tuscany.interfacedef.java.JavaFactory;
 import org.apache.tuscany.interfacedef.java.JavaInterface;
+import org.apache.tuscany.interfacedef.java.JavaInterfaceContract;
 
 /**
  * A factory for the Java model.
@@ -31,6 +32,10 @@
 
     public JavaInterface createJavaInterface() {
         return new JavaInterfaceImpl();
+    }
+    
+    public JavaInterfaceContract createJavaInterfaceContract() {
+        return new JavaInterfaceContractImpl();
     }
 
 }

Added: incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/JavaInterfaceContractImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/JavaInterfaceContractImpl.java?view=auto&rev=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/JavaInterfaceContractImpl.java (added)
+++ incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/JavaInterfaceContractImpl.java Tue Apr 10 16:02:52 2007
@@ -0,0 +1,31 @@
+/*
+ * 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.tuscany.interfacedef.java.impl;
+
+import org.apache.tuscany.interfacedef.impl.InterfaceContractImpl;
+import org.apache.tuscany.interfacedef.java.JavaInterfaceContract;
+
+/**
+ * Represents a Java interface contract.
+ * 
+ * @version $Rev$ $Date$
+ */
+public class JavaInterfaceContractImpl extends InterfaceContractImpl implements JavaInterfaceContract {
+
+}

Propchange: incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/JavaInterfaceContractImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/interfacedef/java/impl/JavaInterfaceContractImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/InterfaceContract.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/InterfaceContract.java?view=auto&rev=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/InterfaceContract.java (added)
+++ incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/InterfaceContract.java Tue Apr 10 16:02:52 2007
@@ -0,0 +1,66 @@
+/*
+ * 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.tuscany.interfacedef;
+
+
+/**
+ * Interface contracts define one or more business functions. These business
+ * functions are provided by services and are used by references.
+ * 
+ * @version $Rev$ $Date$
+ */
+public interface InterfaceContract {
+
+    /**
+     * Returns the interface definition representing the interface for
+     * invocations from the requestor to the provider.
+     * 
+     * @return the interface definition representing the interface for
+     *         invocations from the requestor to the provider
+     */
+    Interface getInterface();
+
+    /**
+     * Sets the interface definition representing the interface for invocations
+     * from the requestor to the provider.
+     * 
+     * @param callInterface the interface definition representing the interface
+     *            for invocations from the requestor to the provider
+     */
+    void setInterface(Interface callInterface);
+
+    /**
+     * Returns the interface definition representing the interface for
+     * invocations from the provider to the requestor.
+     * 
+     * @return the interface definition representing the interface for
+     *         invocations from the provider to the requestor.
+     */
+    Interface getCallbackInterface();
+
+    /**
+     * Sets the interface definition representing the interface for invocations
+     * from the provider to the requestor.
+     * 
+     * @param callbackInterface the interface definition representing the
+     *            interface for invocations from the provider to the requestor.
+     */
+    void setCallbackInterface(Interface callbackInterface);
+
+}

Propchange: incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/InterfaceContract.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/InterfaceContract.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/impl/InterfaceContractImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/impl/InterfaceContractImpl.java?view=auto&rev=527336
==============================================================================
--- incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/impl/InterfaceContractImpl.java (added)
+++ incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/impl/InterfaceContractImpl.java Tue Apr 10 16:02:52 2007
@@ -0,0 +1,51 @@
+/*
+ * 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.tuscany.interfacedef.impl;
+
+import org.apache.tuscany.interfacedef.Interface;
+import org.apache.tuscany.interfacedef.InterfaceContract;
+
+/**
+ * Represents an interface contract.
+ * InterfaceContractImpl
+ *
+ * @version $Rev$ $Date$
+ */
+public abstract class InterfaceContractImpl implements InterfaceContract {
+    private Interface callInterface;
+    private Interface callbackInterface;
+
+    public Interface getCallbackInterface() {
+        return callbackInterface;
+    }
+
+    public Interface getInterface() {
+        return callInterface;
+    }
+
+    public void setCallbackInterface(Interface callbackInterface) {
+        this.callbackInterface = callbackInterface;
+    }
+
+    public void setInterface(Interface callInterface) {
+        this.callInterface = callInterface;
+    }
+
+}

Propchange: incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/impl/InterfaceContractImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/modules/interface/src/main/java/org/apache/tuscany/interfacedef/impl/InterfaceContractImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



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