Adding a New Component Type
(3rd May 2007) I wanted to get the Spring and BPEL component types running with the new Tuscany Java core. This page and those hung off it are my ramblings as I go through the process of building the code for these component types. I hope that these will help anyone else who wants to venture down the path of adding a component type. Beware that I make no claims as to great insight or special knowledge - and I am sure that there will be things that I have not tackled.
Associated with this general page is a set of pages dedicated to Adding the Spring Component Type where specifics relating to the Spring implementation are described.
Basic Information about code for a Component Type
To create a Module which supports a Component Type, you need to implement a series of interfaces to the Tuscany Core, plus a set of related files which declare your Module to the core:
- xxxModuleActivator, which implements the ModuleActivator interface
- ModuleActivator file
The ModuleActivator file
This must be placed into the location
META-INF/services/org.apache.tuscany.spi.bootstrap.ModuleActivator
... this will be under the Resources directory in the source tree
The file contains the class name for the implementation of your Module, eg:
# Implementation class for the ExtensionActivator for module Foo org.apache.tuscany.implementation.foo.FooModuleActivator