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/sca-java-hostembedded.html | 224 +++++++++++++++++++++ 1 file changed, 224 insertions(+) create mode 100644 site/trunk/site-publish/sca-java-hostembedded.html (limited to 'site/trunk/site-publish/sca-java-hostembedded.html') diff --git a/site/trunk/site-publish/sca-java-hostembedded.html b/site/trunk/site-publish/sca-java-hostembedded.html new file mode 100644 index 0000000000..8772e3bb8b --- /dev/null +++ b/site/trunk/site-publish/sca-java-hostembedded.html @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + Apache Tuscany : SCA JAVA host.embedded + + + + + + + + + + + + + + + +
+ + + + +   + +
+ + +
+
+ + + + + + + + + +
+  Apache Tuscany > Home > SCA Overview > SCA Java > Java SCA Documentation Menu > SCA Java User Guide > SCA JAVA host.embedded + + User List | Dev List | Issue Tracker   +
+ + + + + + + +
+ + +
+ +
+
+ + +
+ + + + + + + + + + + +
Resources
+
+ +

host.embedded

+ +

The embedded host extension provides some simple options for embedding the SCA runtime in other applications such as the programs that the Apache Tuscany project uses for tests and for its sample applications.

+ +

SCADomain

+ +

You will see SCADomain used in many of the project's test and sample applications in the following form:

+ +
+
+// intialize the Tuscany SCA Java runtime and provide a contribution
+SCADomain scaDomain = SCADomain.newInstance("Calculator.composite");
+
+// a self reference to a service in the contribution
+CalculatorService calculatorService = scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent");
+
+// do some work with the service
+int result = calculatorService.add(3, 2)
+
+// shut down the Tuscany SCA Java runitme
+scaDomain.close();
+
+
+ +

SCADomain provides an interface for creating a domain and adding contributions. Once the domain is initialize it can be used to find services and references from the domain so that they can be manipulated directly.

+ +

Selecting A Domain Implementation

+ +

Currently two domain inplementations are provided, DefaultSCADomain and EmbeddedSCADomain. You can choose between the two by...

+ +

TODO

+ +

DefaultSCADomain

+ +

Defining A Contribution

+ +

TODO

+ +

Domain URI

+ +

TODO

+ +

Getting Services

+ +

TODO

+ +

Getting References

+ +

TODO

+ +

EmbeddedSCADomain

+ +

Defining A Contribution

+ +

TODO

+ +

Domain URI

+ +

TODO

+ +

Getting Services

+ +

TODO

+ +

Getting References

+ +

TODO

+
+
+
+
+ + +
+ + + + + + website stats + + + + + + -- cgit v1.2.3