[ 
https://issues.apache.org/jira/browse/ANY23-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simone Tripodi updated ANY23-50:
--------------------------------

    Attachment: ANY23-50.patch

The attached patch intends show how plugins management is simplified via the 
ServiceLoader.

Same approach can be applied for the Extractors.

All tests pass:

{code}
[INFO] Apache Any23 :: Parent ............................ SUCCESS [12.443s]
[INFO] Apache Any23 :: Core .............................. SUCCESS [1:20.493s]
[INFO] Apache Any23 :: Plugins :: Basic Crawler .......... SUCCESS [37.699s]
[INFO] Apache Any23 :: Plugins :: HTML Scraper ........... SUCCESS [3.694s]
[INFO] Apache Any23 :: Plugins :: Office Scraper ......... SUCCESS [9.041s]
[INFO] Apache Any23 :: Plugins :: Integration Test ....... SUCCESS [1:50.133s]
[INFO] Apache Any23 :: Service ........................... SUCCESS [23.453s]
{code}
                
> 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

        

Reply via email to