incubator-any23-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/ANY23-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211062#comment-13211062
] 

Simone Tripodi commented on ANY23-50:
-------------------------------------

Hola!

META-INF/services metadata are always generated at compile time, indeed plugins are annotated
with [@MetaInfService|http://weblogs.java.net/blog/kohsuke/archive/2009/03/my_project_of_t.html]
that is part of a provided-scope Annotation Processor wrote by Kohsuke (the Hudson/Jenkin's
father)

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!
TIA!
                
> Simplify plugin loading avoiding the classpath scanning
> -------------------------------------------------------
>
>                 Key: ANY23-50
>                 URL: https://issues.apache.org/jira/browse/ANY23-50
>             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|http://markmail.org/message/airsqz6wp6y7bfih] I started having
a look at an alternative solution to load plugins avoiding to scan the classpath, using the
builtin [ServiceLoader|http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html]
pattern.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message