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 --- .../adding-the-spring-component-type.html | 157 +++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 site/trunk/site-publish/adding-the-spring-component-type.html (limited to 'site/trunk/site-publish/adding-the-spring-component-type.html') diff --git a/site/trunk/site-publish/adding-the-spring-component-type.html b/site/trunk/site-publish/adding-the-spring-component-type.html new file mode 100644 index 0000000000..e8542603fb --- /dev/null +++ b/site/trunk/site-publish/adding-the-spring-component-type.html @@ -0,0 +1,157 @@ + + + + + + + Adding the Spring Component Type : Apache Tuscany + + + + + + + + + + + + + + + + +
+ + + + +   + + + +
+ + +
+
+ + + + + + + +
+  Apache Tuscany > Home > SCA Overview > SCA Java > Java SCA Documentation Menu > SCA Java Extension Development Guide > Mike Edwards Ramble through Adding a New Component Type > Adding the Spring Component Type + + User List | Dev List | Issue Tracker   +
+ + + + + +
+
+ +
+
+

(3rd May 2007) This pages and the pages hung off it describe the creation of the module which supports the Spring Component Type that I am working on for a demo. This might be useful to anyone looking to build their own Component Type implementation.

+ +

Sequence

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order Work Item
Comment
0
implementation-spring module created
+
+org.apache.tuscany.implementation.spring package
 
1 Created ModuleActivator file
 
2 Create SpringModuleActivator class  
3
Create SpringArtifactProcessor class
Reads the implementation.spring xml
+ - one required attribute = location, which specifies the location of the Spring application context
+ Creates the implementationSpring instance
+ Initiates resolution of the componentType of the Spring application context
   
   
   
   
   
   
+ +

ModuleActivator file

+ +

Placed into the resources/META-INF/services directory:

+
+
# Implementation class for the ExtensionActivator
+org.apache.tuscany.implementation.script.ScriptModuleActivator
+
+ +

Resolution of the ComponentType of Spring application context

+ +

ComponentType of the Spring application-context is performed by reading the application-context.xml file and by introspecting the Java beans which it references. 

+
+
+
+
+ + + + + website stats + + + + + \ No newline at end of file -- cgit v1.2.3