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++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -