Hi,

 

I think I am missing some point in iPOJO.

 

The use case is:

*         I have an interface, let’s say IRuleStrategy, that define
execution strategies for Rule.

*         I have different implementations: Strategy1 to execute Rule on
system version1 and Strategy2 to execute Rule on system version2.

*         I will create a singleton instance of each of these implementation
with IPOJO

 

Now in my ExecutionEngine I want to retrieve the strategy for a rule,
depending on a the system version, something as getStrategy(int version). I
do not see how to do that with IPOJO component? That means how to retrieve
are component from its interface and some properties.

 

The only solution I think about is that the component publishes an OSGi
service and then I can retrieve the service by properties. But can I avoid
it and requesting component instead of service, what are the best practices?
Is fear an overhead using services and also I am not confident about OSGi
service and multithreading ?

 

Thanks,

Steph

 

 

            

Reply via email to