I need to provide some configuration to my bean class. In regular Spring application I'm using @PostConstruct but it not seems to be working in Play 2.4
I use @Singleton annotation on my bean class. I can inject in but @PostConstruct method is ignored. How can I pass additional configuration to my bean?
PS. the method is defined as follows:
void init() {
}
I've tried make it public\private but nothing helps
Thanks
@PostConstructannotation. To turn it on you have to either registerCommonAnnotationBeanPostProcessoror specify the<context:annotation-config />in your context configuration. - Kris