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

  • Method chain

    Hi, I'm new to Spring.

    Is there any simple way to define a list of methods (of different classes and implementing common interface) and execute them sequentially by the framework?

  • #2
    It might be more helpful if you give a sample of what you're looking for; your question seems too vague.

    Comment


    • #3
      Sample

      Say I have two classes:

      class Apple() implements Fruit
      public void cut(){}

      class Orange() implements Fruit
      public void cut(){}

      And I want a framework to execute them sequentailly by referring to a config file like:

      <execute method = 'cut'>
      <class> Apple</class>
      <class> Orange </class>
      </execute>

      Also, I would need to intercept these method calls.

      Comment


      • #4
        And what is the trigger of the execution (when those methods to be executed) ? Have you thought using Quartz ? http://static.springframework.org/sp...eduling-quartz

        Comment

        Working...
        X