On Sun, Apr 1, 2012 at 11:31 AM, Mircea Carasel <[email protected]> wrote:
> I still think that child settings should not be prototypes, but this is a
> more generic topic and I would like to hear other opinions as well
Objects from database cannot really be singletons.
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/