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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -