Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

Code Block


\# Implementation class for the ExtensionActivator for module Foo
org.apache.tuscany.implementation.foo.FooModuleActivator