aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-777) AriesFrameworkUtil FelixWorker doesn't work on r4.3 felixes
Date Wed, 09 Nov 2011 01:55:51 GMT

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

David Jencks commented on ARIES-777:
------------------------------------

Umm, that would be 

      return b.adapt(BundleWiring.class).getClassLoader();

which should work for equinox too.
                
> AriesFrameworkUtil FelixWorker doesn't work on r4.3 felixes
> -----------------------------------------------------------
>
>                 Key: ARIES-777
>                 URL: https://issues.apache.org/jira/browse/ARIES-777
>             Project: Aries
>          Issue Type: Bug
>          Components: Util
>    Affects Versions: util-0.4
>            Reporter: David Jencks
>            Assignee: David Jencks
>
> The felix-specific way to get a bundle's classloader has changed to something like
>       List<BundleRevision> revisions = b.adapt(BundleRevisions.class).getRevisions();
>       if (!revisions.isEmpty()) {
>         BundleRevision revision = revisions.get(0);
>         return ((BundleRevisionImpl)revision).getProtectionDomain().getClassLoader();
>       }

--
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