add a new binding in Tuscany

yjlin's picture

Generally, there are six steps for a new binding in Tuscany, as follows:

1. Define the model extension for reference and service binding;

2. Define interfaces/classes to represent the model for the binding ;

3. Implement the StAXArtifactProcessor to read/resolve/write the models;

4. Add the runtime logic by implementing the BindingProviderFactory, ReferenceBindingProvider, ServiceBindingProvider SPIs;

5. Implement the ModuleActivator interface to hook up the StAXArtifactProcessor and BindingProviderFactory with respective extension points;

6. Contribute an extension module to Tuscany