diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-23 16:17:53 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-23 16:17:53 +0000 |
commit | ff6e6a7002b1cc773ce8fed5cd11add77823bafb (patch) | |
tree | 01a2f51e8188357c5f8e603769524396c665c86b /branches/sca-java-1.3/itest/wsdlless/src/main/java | |
parent | 992ab88dec30e1351f3cd782b174bdf375d14930 (diff) |
Merge the fix for TUSCANY-2388 from trunk
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@670666 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.3/itest/wsdlless/src/main/java')
4 files changed, 188 insertions, 0 deletions
diff --git a/branches/sca-java-1.3/itest/wsdlless/src/main/java/service/AnObject.java b/branches/sca-java-1.3/itest/wsdlless/src/main/java/service/AnObject.java new file mode 100644 index 0000000000..65ba52f356 --- /dev/null +++ b/branches/sca-java-1.3/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.3/itest/wsdlless/src/main/java/service/MoreComplexObject.java b/branches/sca-java-1.3/itest/wsdlless/src/main/java/service/MoreComplexObject.java new file mode 100644 index 0000000000..69eba6701d --- /dev/null +++ b/branches/sca-java-1.3/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.3/itest/wsdlless/src/main/java/service/SomeService.java b/branches/sca-java-1.3/itest/wsdlless/src/main/java/service/SomeService.java new file mode 100644 index 0000000000..f6aaacb23a --- /dev/null +++ b/branches/sca-java-1.3/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.3/itest/wsdlless/src/main/java/service/SomeServiceImpl.java b/branches/sca-java-1.3/itest/wsdlless/src/main/java/service/SomeServiceImpl.java new file mode 100644 index 0000000000..39a2131024 --- /dev/null +++ b/branches/sca-java-1.3/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()); + } + +} |