Hi, On 21.02.11 16:26, "Jean-Baptiste Reich" <[email protected]> wrote:
>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 ? You can also expose a ManagedService using: @Component(managedservice=pid, publicFactory=false) Where pid is the desired managed service pid. Regards, Clement > >Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

