Announcement Announcement Module
Collapse
No announcement yet.
Spring DSL help Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring DSL help

    Hi there! I've checked the docs, but still I don't know exactly how to do this:

    I have a class with a static factory method that takes a parameter:

    Connection c = ConnectionFactory.getConnection(connectionProperti es)

    How can I translate this into spring DSL?

    I need to pass this Connection object to another bean as a property.

    Regards

  • #2
    Try:
    Code:
    myConnection(ConnectionFactory, connectionProperties) {bean ->
        bean.factoryMethod = 'getConnection'
    }

    Comment

    Working...
    X