spring - @Autowired on a constructor of a Scala class -


i have simple question, how use spring @autowired on constructor of scala class?

class messagembeanexporter(messagedirectory: messagedirectory) extends mbeanexporter smartlifecycle {       ..... } 

i haven't tried it, according this , this link, 2.8+ do:

class messagembeanexporter @autowired() (messagedirectory: messagedirectory) extends mbeanexporter smartlifecycle {       ..... } 

Comments

Popular posts from this blog

c - sscanf() double showing zeros -

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -