git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Commented] (ARIES-1854) Add support for ServiceLoader.load(Class, ClassLoader)


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

ASF subversion and git services commented on ARIES-1854:
--------------------------------------------------------

Commit 1845127 from rotty3000@xxxxxxxxxx in branch 'aries/trunk'
[ https://svn.apache.org/r1845127 ]

ARIES-1854 Add support for ServiceLoader.load(Class, ClassLoader)

Signed-off-by: Raymond Auge <rotty3000@xxxxxxxxxx>

> Add support for ServiceLoader.load(Class, ClassLoader)
> ------------------------------------------------------
>
>                 Key: ARIES-1854
>                 URL: https://issues.apache.org/jira/browse/ARIES-1854
>             Project: Aries
>          Issue Type: Improvement
>          Components: SPI Fly
>            Reporter: Raymond Augé
>            Assignee: Raymond Augé
>            Priority: Major
>             Fix For: spifly-1.1
>
>
> Currently SpiFly does not support the \{{ServiceLoader.load(Class, ClassLoader)}} method, ignoring it completely.
>  
> The solution is to create a wrapper classloader which takes the specified classloader as the *parent*. If the parent lookup for a provider fails, fall through to the Service Loader Mediator mechanism. This method does not rely on the TCCL.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)