On Thu, Nov 29, 2012 at 9:49 PM, Millies, Sebastian <
[email protected]> wrote:

> > -----Original Message-----
> > From: Simon Nash [mailto:[email protected]]
> > Sent: Thursday, November 29, 2012 7:13 PM
> > To: [email protected]
> > Subject: Re: Get Contribution at runtime?
>
> [snip]
>
> > Would you like to create a new JIRA for the fault you discovered and
> > needed to
> > work around by creating
> > PrioritizedContributionClassLoaderProviderExtensionPoint?
> >
> >    Simon
>
> That would be https://issues.apache.org/jira/browse/TUSCANY-4074
>
> Was this worthwhile? I suppose there won't be any more 1.x releases,
> and there is a workaround.
>
> But perhaps you might want to check if a similar condition exists in 2.0.
>
>
Yes there is in 2.x. Sorry i meant to talk more about it but have been
snowed under the last days and didn't get a chance. In 2.x you can do all
the things that have been talked about here, we do them in the appserver my
company embeds Tuscany in. Its much easier in 2.x because its possible to
modify the Contribution classloader after the contribution has been
installed but before composites are started so you can just replace the
classloader with one that does what you need. In an older version we also
use the approach that you've just with pluging in a different classloader
provider. I still actually think the original approach you suggested of
including dependencies within the contribution and modifying search order
so the contribution classes comes first sounds nice and simple and would be
worth supporting too.

   ...ant

Reply via email to