Clement Escoffier a écrit :
Hi,
On 03.02.2009, at 16:40, Stuart McCulloch wrote:

2009/2/3 Rob Walker <[email protected]>

The servicebinder model has served us very well and still does. I note
though that there are perhaps newer approaches such as Declarative Services
and iPojo. Very interested in views on:

 * benefits of moving from servicebinder (especially any real
   experiences from others who have done this)
 * pros and cons of either DS or iPojo as the model to move to


interesting, Karl and I were just chatting about this...

iPOJO provides a really comprehensive component model, where you
can add almost any sort of behaviour using handlers - the downside in
my opinion is that it requires you to instrument your bundles in the build
phase - these bundles cannot then be used without iPOJO

The instrumentation is made in a way that you don't need iPOJO to use a manipulated class (see http://felix.apache.org/site/dive-into-the-ipojo-manipulation-depths.html). The only downside, is that the iPOJO management will not happen.


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();

Thanks
--Guillaume


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to