--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "ipopo-users".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse ipopo-users+unsubscribe@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.
Thanks. Because the situation I run into is I like to use my specification namespace name as my instance names when using @Instantiate.That instance gets injected where it's needed.If I then create a new instance from outside the framework I can't use the same name and have to them create a second redundant instance to use outside the framework as I can't retrieve the one the framework holds.
Can I use @Instantiate without a name?
--
This issue corresponding to this discussion can be seen at:
2017-02-23 22:17 GMT+01:00 Thomas Calmant <thomas....@gmail.com>:
If you require a component factory to only have one component instance at a time, no matter its name, you can use the SingletonFactory decorator [1].With the get_instance(name) method, it should work as you want.
2017-02-23 21:47 GMT+01:00 Darren G <darre...@gmail.com>:
Ok. Thanks. I guess that will help support a singleton pattern and it will be up to the implementor to ensure correct behavior internally.
On Feb 23, 2017 3:37 PM, "Thomas Calmant" <thomas....@gmail.com> wrote:
--2017-02-23 21:23 GMT+01:00 Darren G <darre...@gmail.com>:Thanks. Because the situation I run into is I like to use my specification namespace name as my instance names when using @Instantiate.That instance gets injected where it's needed.If I then create a new instance from outside the framework I can't use the same name and have to them create a second redundant instance to use outside the framework as I can't retrieve the one the framework holds.OK, I see.Can I use @Instantiate without a name?No, but maybe you can kill the previous instance, if necessary.I'll add a get_instance(name) method to the core service this weekend, as I'll (finally) have some time to work on the project.
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "ipopo-users".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse ipopo-users...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "ipopo-users".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse ipopo-users...@googlegroups.com.