>
>
> Objects from database cannot really be singletons.
>
This is correct, but I was referring to situation when settings are not yet
saved into database, no one saved them yet - and I was thinking that
initialization data needs to be shared in a statefull manner. In practice,
statefull should be used very carefully, especially in web apps, so lets
stick with prototype settings..

THanks for the suggestion, I will use it
mircea


> Can't you do this?
>
>    public ImBotSettings() {
>        addDefaultBeanSettingHandler(new Defaults());
>    }
>
>    static class Defaults {
>        @SettingEntry(path=PA_PASSWORD_SETTING)
>        public String getPassword() {
>            // load from database or use static references
>         }
>    }
> _______________________________________________
> sipx-dev mailing list
> [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipx-dev/
>
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to