incubator-any23-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (Commented) (JIRA)" <>
Subject [jira] [Commented] (ANY23-50) Simplify plugin loading avoiding the classpath scanning
Date Sat, 18 Feb 2012 20:31:59 GMT


Simone Tripodi commented on ANY23-50:


META-INF/services metadata are always generated at compile time, indeed plugins are annotated
with [@MetaInfService|]
that is part of a provided-scope Annotation Processor wrote by Kohsuke (the Hudson/Jenkin's

In Any23 the ServiceLoader is used inside the the Any23PluginManager, relying on the already
managed dynamic ClassLoader, so when adding new jars/resources at runtime to the ClassLoader,
SL queries it.

I think that the same strategy can be applied to Extractors' factories as well, WDYT?

Anyway, please double-ack if you agree I can commit the modification!
> Simplify plugin loading avoiding the classpath scanning
> -------------------------------------------------------
>                 Key: ANY23-50
>                 URL:
>             Project: Apache Any23
>          Issue Type: Improvement
>    Affects Versions: 0.7.0
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>             Fix For: 0.7.0
>         Attachments: ANY23-50.patch
> As already discussed in [ML|] I started having
a look at an alternative solution to load plugins avoiding to scan the classpath, using the
builtin [ServiceLoader|]

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message