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
Post a Comment