Hi Claus, Yep, we should have Dynamic Import for rhino bundle.
Create SM-2200[1] to track it. Thanks for pointing out this issue. [1]https://issues.apache.org/jira/browse/SM-2200 ------------- Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 www.camelone.org : The open source integration conference: On 2013-5-12, at 下午3:21, Claus Ibsen wrote: > Hi > > This question on SO > http://stackoverflow.com/questions/15781528/javascript-and-classes-from-packages-from-other-bundle > > Is using ServiceMix with JavaScript. And I noticed in our ServiceMix > wrapped bundle of JS Rhino: > http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.rhino/1.7R2_3/ > > We have these headers (link to a gist): > https://gist.github.com/davsclaus/5562728 > > There is NO dynamic imports. > > > But for example the groovy bundle has that > > headers 215 > > Groovy Runtime (215) > -------------------- > Specification-Title = Groovy: a powerful, dynamic language for the JVM > Eclipse-BuddyPolicy = dependent > ... > Bundle-ClassPath = . > > DynamicImport-Package = > * > Import-Package = > com.thoughtworks.xstream;resolution:=optional, > groovy.beans;resolution:=optional;version=1.8, > > > > I wonder if not all those scripting language bundles should have > dynamic imports. So people can write scripts and refer to classes in > packages, in other package, usually their own custom classes in their > own bundles. > > > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > FuseSource is now part of Red Hat > Email: [email protected] > Web: http://fusesource.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen
