Thank you very much! I'll try :) 2010/10/13 Luciano Resende <[email protected]>
> On Wed, Oct 13, 2010 at 7:17 AM, Fabio Albani <[email protected]> > wrote: > > My problem is that I need to read the XML of the composite from the > > extension point, is that possibile? > > I've done annotations in my implementation in order to read the > references > > and services in the files, but I don't know how to wire them with the > wiring > > provided in the composite. > > Thanks in advance. > > Fabio > > You need to register an ArtifactProcessor for reading xml from the > composite, there are two options : > > 1) If your extension is a new binding/implementation > > Create > > > META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor > > The contents look like : > > # Implementation class for the artifact processor extension > org.apache.tuscany.sca.binding.rest.xml.RESTBindingProcessor;qname= > http://tuscany.apache.org/xmlns/sca/1.1#binding.rest,model=org.apache.tuscany.sca.binding.rest.RESTBinding,factory=org.apache.tuscany.sca.binding.rest.RESTBindingFactory > > You can see the REST extension for details on the implementation of > the processor. > > > 2) If you just want to read extra attributes for an existing extension > > You will follow a similar process, but instead of using a > ArtifactProcessor, you define a AttributeProcessor > > Hope this helps. > > -- > Luciano Resende > http://people.apache.org/~lresende > http://twitter.com/lresende1975 > http://lresende.blogspot.com/ >
