From 5b67e082ce57df77acc72cd36569a05c9a2fa347 Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 6 Jul 2009 07:23:44 +0000 Subject: Branch for 1.5.1 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@791397 13f79535-47bb-0310-9956-ffa450edef68 --- .../wsdlless/src/main/java/service/AnObject.java | 62 ++++++++++++++++++++++ .../src/main/java/service/MoreComplexObject.java | 53 ++++++++++++++++++ .../src/main/java/service/SomeService.java | 31 +++++++++++ .../src/main/java/service/SomeServiceImpl.java | 42 +++++++++++++++ 4 files changed, 188 insertions(+) create mode 100644 branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/AnObject.java create mode 100644 branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/MoreComplexObject.java create mode 100644 branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/SomeService.java create mode 100644 branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/SomeServiceImpl.java (limited to 'branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service') diff --git a/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/AnObject.java b/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/AnObject.java new file mode 100644 index 0000000000..65ba52f356 --- /dev/null +++ b/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/AnObject.java @@ -0,0 +1,62 @@ +/* + * 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 service; + +public class AnObject { + + private String someRetValue; + private Integer someOtherRetValue; + + public AnObject() { + } + + public AnObject(String someRetValue, Integer someOtherRetValue) { + this.someRetValue = someRetValue; + this.someOtherRetValue = someOtherRetValue; + } + + /** + * @return the someOtherRetValue + */ + public Integer getSomeOtherRetValue() { + return someOtherRetValue; + } + + /** + * @param someOtherRetValue the someOtherRetValue to set + */ + public void setSomeOtherRetValue(Integer someOtherRetValue) { + this.someOtherRetValue = someOtherRetValue; + } + + /** + * @return the someRetValue + */ + public String getSomeRetValue() { + return someRetValue; + } + + /** + * @param someRetValue the someRetValue to set + */ + public void setSomeRetValue(String someRetValue) { + this.someRetValue = someRetValue; + } + +} diff --git a/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/MoreComplexObject.java b/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/MoreComplexObject.java new file mode 100644 index 0000000000..69eba6701d --- /dev/null +++ b/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/MoreComplexObject.java @@ -0,0 +1,53 @@ +/* + * 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 service; + +import java.io.Serializable; + +public class MoreComplexObject implements Serializable { + private static final long serialVersionUID = 43242314234123L; + private String stringParam; + private Integer intParam; + private String stringParam2; + + public String getStringParam() { + return stringParam; + } + + public void setStringParam(String stringParam) { + this.stringParam = stringParam; + } + + public Integer getIntParam() { + return intParam; + } + + public void setIntParam(Integer intParam) { + this.intParam = intParam; + } + + public String getStringParam2() { + return stringParam2; + } + + public void setStringParam2(String stringParam2) { + this.stringParam2 = stringParam2; + } + +} diff --git a/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/SomeService.java b/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/SomeService.java new file mode 100644 index 0000000000..f6aaacb23a --- /dev/null +++ b/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/SomeService.java @@ -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 service; + +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface SomeService { + + public AnObject getUsingString(String stringParam); + + public AnObject getUsingMoreComplexObject(MoreComplexObject moreComplexParam); + +} diff --git a/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/SomeServiceImpl.java b/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/SomeServiceImpl.java new file mode 100644 index 0000000000..39a2131024 --- /dev/null +++ b/branches/sca-java-1.5.1/itest/wsdlless/src/main/java/service/SomeServiceImpl.java @@ -0,0 +1,42 @@ +/* + * 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 service; + +import org.osoa.sca.annotations.Service; + +@Service(SomeService.class) +public class SomeServiceImpl implements SomeService { + + public AnObject getUsingString(String stringParam) { + System.out.println("Param value:" + stringParam); + + return getAnObject(stringParam); + } + + private AnObject getAnObject(String stringParam) { + return new AnObject(stringParam + "123", 123); + } + + public AnObject getUsingMoreComplexObject(MoreComplexObject moreComplexParam) { + System.out.println("Param value:" + moreComplexParam.getStringParam()); + + return getAnObject(moreComplexParam.getStringParam()); + } + +} -- cgit v1.2.3