I have application that embeds Felix. Now I'm trying to leverage iPOJO. For this purpose I've created consumer, that have following declaration:
@Component
@Instantiate
public class YetAnotherConsumer {
@Requires(specification = "lookup.Lookup")
List<Lookup> allLookups;
Everything is compiled by ant task <ipojo ...
.
All examples of iPOJO assumes that my application is started under felix console. But (once again) my application embeds felix. So my question how to resolve instance of YetAnotherConsumer
?
EDITED Answering @Neil question, per iPOJO documentation:
@Instantiate
Goal: declare a simple instance (this is equivalent to <instance component="..."> </instance>
I suppose that combination of iPOJO and Felix will create instance of mine YetAnotherConsumer
. So my question is how my application can access this instance?
EDITED 2 I've placed logging to constructor of YetAnotherConsumer
so I can see that this one is not invoked. This arises another question - how to initiate iPOJO, my felix is started as follow:
m_felix = new Felix(configMap);
m_felix.start();
What is missed to start iPOJO engine?