From 200a40b332420f94992eb39a6d0ea1cf1490ffc4 Mon Sep 17 00:00:00 2001 From: coreyg Date: Fri, 21 Nov 2014 09:30:19 +0000 Subject: Adding tuscany's website to their svn repo for svnpubsub git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1640879 13f79535-47bb-0310-9956-ffa450edef68 --- site/trunk/site-publish/java-implementation.html | 175 +++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 site/trunk/site-publish/java-implementation.html (limited to 'site/trunk/site-publish/java-implementation.html') diff --git a/site/trunk/site-publish/java-implementation.html b/site/trunk/site-publish/java-implementation.html new file mode 100644 index 0000000000..48cc93dba9 --- /dev/null +++ b/site/trunk/site-publish/java-implementation.html @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + Apache Tuscany : Java Implementation + + + + + + + + + + + + + + + +
+ + + + +   + +
+ + +
+
+ + + + + + + + + +
+  Apache Tuscany > Home > SCA Overview > SCA Java > SCA Java Work-In-Progress > Java Implementation + + User List | Dev List | Issue Tracker   +
+ + + + + + + +
+ + +
+ +
+
+

+ + + + + + +
+ +

Here is a really simple SCA component implemented in Java:

+ +
+
+public interface Orange {  
+  // methods
+}
+public class AppleImpl implements Apple {  
+  private Orange orange;  
+  public AppleImpl(Orange orange) {    
+    this.orange = orange;  
+  }
+  // other methods
+}
+
+
+

Yes, this is the same as the simplest possible Pico component and it really is a fully functional SCA implementation. Tuscany uses the following conventions to figure out how to run this when you include it in an SCA assembly:

+
    +
  • the class implements a single interface "Apple", so there is one service defined by that interface
  • +
  • there is a single constructor with a value that is not a simple type, we treat that as a reference to the "Orange" service
  • +
  • there are no properties or intents to deal with
  • +
+ +
+
+
+
+ + +
+ + + + + + website stats + + + + + + -- cgit v1.2.3