From 99107098916fecc8c788f441452e9608037ae425 Mon Sep 17 00:00:00 2001 From: slaws Date: Wed, 18 Aug 2010 15:28:56 +0000 Subject: TUSCANY-3653 - Read JAXWS annotations in Java interfaces (JAXWSJavaIntefaceProcessor) and, in the JavaIntefaceProcessor, post process these to reconfigure the Java interface based on what is found. The case where WSDL is referenced is tricky and still has holes. The WSDL is read and is attached to the Java interface as a normalized interface and is used during interface matching. Binding implementations that care about WSDL should really check the normalized interface rather than the service interface itself. This is still a TODO. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@986740 13f79535-47bb-0310-9956-ffa450edef68 --- .../corba/testing/service/mocks/TestInterface.java | 33 +++++++++++++++++++++- .../testing/service/mocks/TestRuntimeWire.java | 6 ++++ 2 files changed, 38 insertions(+), 1 deletion(-) (limited to 'sca-java-2.x/trunk/modules/binding-corba-runtime/src/test') diff --git a/sca-java-2.x/trunk/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestInterface.java b/sca-java-2.x/trunk/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestInterface.java index 757beeae7d..0668761e48 100644 --- a/sca-java-2.x/trunk/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestInterface.java +++ b/sca-java-2.x/trunk/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestInterface.java @@ -24,6 +24,7 @@ import java.util.Map; import javax.xml.namespace.QName; +import org.apache.tuscany.sca.contribution.Contribution; import org.apache.tuscany.sca.interfacedef.Interface; import org.apache.tuscany.sca.interfacedef.Operation; import org.apache.tuscany.sca.interfacedef.java.JavaInterface; @@ -159,5 +160,35 @@ public class TestInterface implements JavaInterface { // TODO Auto-generated method stub } - + + public String getJAXWSJavaInterfaceName() { + // TODO Auto-generated method stub + return null; + } + + public void setJAXWSJavaInterfaceName(String javaInterfaceName) { + // TODO Auto-generated method stub + + } + + public String getJAXWSWSDLLocation() { + // TODO Auto-generated method stub + return null; + } + + public void setJAXWSWSDLLocation(String wsdlLocation) { + // TODO Auto-generated method stub + + } + + public Contribution getContributionContainingClass() { + // TODO Auto-generated method stub + return null; + } + + public void setContributionContainingClass( + Contribution contributionContainingClass) { + // TODO Auto-generated method stub + + } } diff --git a/sca-java-2.x/trunk/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestRuntimeWire.java b/sca-java-2.x/trunk/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestRuntimeWire.java index 616282abfb..2896114775 100644 --- a/sca-java-2.x/trunk/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestRuntimeWire.java +++ b/sca-java-2.x/trunk/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestRuntimeWire.java @@ -301,5 +301,11 @@ public class TestRuntimeWire implements RuntimeEndpoint { // TODO Auto-generated method stub } + + public InterfaceContract getGeneratedWSDLContract( + InterfaceContract interfaceContract) { + // TODO Auto-generated method stub + return null; + } } -- cgit v1.2.3