Announcement Announcement Module
Collapse
No announcement yet.
Action Instantiation and Dependency Injection Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Action Instantiation and Dependency Injection

    I'm a bit confused about how custom Action classes are instantiated and how one injects properties/beans in to them. Is there some documentation on this somewhere?

  • #2
    You can configure an application-context for a flow by adding someting like the following:
    <bean-import resource="placeAd-flow-context.xml" />
    This ads the application-context with the given file. There you can define the action an configuere them (with Dependency Injection) as normal.

    Comment


    • #3
      Okay, then in an <evaluate> statement, the object identifier would be the bean ID? So, for example if i defined a bean "Foo", the evaluate statement would be <evaluate expression="Foo.method(flowRequestContext)"/>?

      Comment


      • #4
        Originally posted by daleth View Post
        Okay, then in an <evaluate> statement, the object identifier would be the bean ID? So, for example if i defined a bean "Foo", the evaluate statement would be <evaluate expression="Foo.method(flowRequestContext)"/>?
        Totally correct!

        Marc Gorzala

        Comment


        • #5
          Great, thanks.

          Comment

          Working...
          X