diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-10-15 12:43:32 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-10-15 12:43:32 +0000 |
commit | 924bf844f8e563346a39d2f08659cb538510bedd (patch) | |
tree | 7e0052c988fa47a67128f29d7dc48a712e5b3a96 /sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src | |
parent | ae4a72fb797a5956b6b9547ae765e84b9fde0135 (diff) |
Rename the async calculator sample contribution to make it match others and remove the launcher. The embedded-jse launcher will do this job
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1022893 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src')
5 files changed, 0 insertions, 196 deletions
diff --git a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/calculator/CalculatorService.java b/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/calculator/CalculatorService.java deleted file mode 100644 index 9937323993..0000000000 --- a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/calculator/CalculatorService.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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 calculator; -import org.oasisopen.sca.annotation.Remotable; - - -/** - * The Calculator service interface. - */ - -@Remotable -public interface CalculatorService { - String calculate(Integer n1); -}
\ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/launcher/RuntimeIntegration.java b/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/launcher/RuntimeIntegration.java deleted file mode 100644 index aa36b6009b..0000000000 --- a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/launcher/RuntimeIntegration.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 launcher; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - - -/** - * Base JSE launcher function - */ -public class RuntimeIntegration { - - - public Node startNode(Contribution... contributions){ - Node node = NodeFactory.newInstance().createNode(contributions); - node.start(); - return node; - } - - public void stopNode(Node node){ - node.stop(); - } - -} diff --git a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/launcher/SampleJSELauncher.java b/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/launcher/SampleJSELauncher.java deleted file mode 100644 index a5e6d75d24..0000000000 --- a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/launcher/SampleJSELauncher.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 launcher; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; - -import calculator.CalculatorService; - - -/** - * This client program shows how to create an embedded SCA runtime, load a contribution, - * start it and, in some cases, locate and invoke an SCA component - */ -public class SampleJSELauncher extends RuntimeIntegration { - - protected boolean waitBeforeStopping = false; - - public static void main(String[] args) throws Exception { - SampleJSELauncher launcher = new SampleJSELauncher(); - launcher.launchImplementationJavaCalculatorAsync(); - } - - public void launchImplementationJavaCalculatorAsync(){ - Node node = startNode(new Contribution("c1", "../sample-contribution-implementation-java-calculator-async/target/sample-contribution-implementation-java-calculator-async.jar")); - stopNode(node); - } -} diff --git a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/launcher/SampleLauncherException.java b/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/launcher/SampleLauncherException.java deleted file mode 100644 index 1eacb94b19..0000000000 --- a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/main/java/launcher/SampleLauncherException.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 launcher; - -/** - * This exception signals problems in the management of SCA component execution. - */ -public class SampleLauncherException extends RuntimeException { - /** - * Constructs a SampleLauncherException with no detail message. - */ - public SampleLauncherException() { - super(); - } - - /** - * Constructs a SampleLauncherException with the specified detail - * message. - * - * @param message the detail message - */ - public SampleLauncherException(String message) { - super(message); - } - -} diff --git a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/test/java/launcher/LauncherTestCase.java b/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/test/java/launcher/LauncherTestCase.java deleted file mode 100644 index 9c046a9ca1..0000000000 --- a/sca-java-2.x/trunk/samples/learning-more/async/embedded-jse-async-sample-launcher/src/test/java/launcher/LauncherTestCase.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 launcher; - -import org.junit.Ignore; -import org.junit.Test; - -/** - * Test sample contributions. - */ -public class LauncherTestCase { - - @Ignore - @Test - public void testContributionImplementationJavaCalculatorAsync() throws Exception { - SampleJSELauncher.main(null); - } - -} |