[
https://issues.apache.org/jira/browse/DOSGI-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13823507#comment-13823507
]
Christian Schneider commented on DOSGI-20:
------------------------------------------
I also though about the possibility of searching the package in the Bundle
Wiring API. The problem of choosing the wrong package is not worse than in the
dynamic import case as there is also no guarantee to get the correct one.
Currently we do not have any information about the package version though. We
would have to store it in the endpoint data.
I did not think about the other possibility of defering the loadClass. This
also sounds very promising. I will look into both options.
> Get rid of the DynamicImport-Package="*"
> ----------------------------------------
>
> Key: DOSGI-20
> URL: https://issues.apache.org/jira/browse/DOSGI-20
> Project: CXF Distributed OSGi
> Issue Type: Bug
> Reporter: David Bosschaert
>
> The current DOSGi implementation uses DynamicImport-Package="*". While this
> is very convenient, it is potentially unpredictable and could have serious
> performance side effects. Therefore it would be better to remove this
> dependency and potentially use direct OSGi API to find the required package
> potentially via the PackageAdmin only when we need to do this type of thing
> i.e. when a proxy is created.
--
This message was sent by Atlassian JIRA
(v6.1#6144)