OK, Thanks for the explanation. --G Stuart McCulloch a écrit :
Just to be 100% clear, does this means that your instrumented class can be reused outside of OSGi ? I mean,will the following pseudo code work outside of OSGi, with the manipulated classes ? MyComponent mc = new MyComponent(); mc.setProperty("hello"); mc.doSomething();based on Clement's detailed description at: http://felix.apache.org/site/dive-into-the-ipojo-manipulation-depths.html the answer is yes, but there seems to be a type dependency on InstanceManager which means that (in my limited experience) you need the iPOJO bundle installed alongside your enhanced bundle to provide certain packages - this is just so the bundle resolves, it's not actually used at runtime. If you construct instances directly the iPOJO management fields default to null and the instance reverts to its original behaviour :) so yes, you can re-use the manipulated classes outside of the iPOJO container (very similar to how you can re-use Guice annotated classes in other containers, because the @Inject annotation doesn't introduce a mandatory dependency ;) Thanks
--Guillaume --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

