Hello,

I am reading the iPOJO documentation but I don't see how I can handle the
creation of a singleton component when a configuration in config admin is
there.
My problem is to wait until a configuration is available for a given pid and
to create the unique instance of my component at that moment.

I have seen that I could declare a factory on my component which results in
the creation of a ManagedServiceFactory but with that I can't limit the
number of instances...

Another way is to declare a private component with a pid and to declare my
single instance in the metadata.xml but like this my object is created even
if I don't have configuration in config admin...

Is there a way to do that ?

Thanks

Reply via email to