Venkata Krishnan wrote:
Hi Ant,

Yes, this sounds good to me - that will make all meta-data related to an
extension available in just one place.

- Venkat


What i was thinking of was along the lines of adding Tuscany specific xml
to
the definitions file that replaces everything we currently put in the
meta-inf/services files for binding and implementation extensions, eg
something like:

<definitions xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"; ... >

  <bindingType type="binding.ws" ... >

     <tuscany:binding

providerFactory="org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory"

model="org.apache.tuscany.sca.binding.ws.WebServiceBinding" />

  </bindingType>

</definitions>


IMHO this is mixing different concerns that should be kept independent:

- domain != runtime
- policy definitions != runtime extensions
- application level definitions != system definitions

If you don't like the current META-INF/services approach and really want to change all that, I'd suggest to come up with a proper extension mechanism, independent of SCA policy definitions, something like OSGi for example would be more suitable for this.

--
Jean-Sebastien

Reply via email to