-
Jul 7th, 2007, 08:27 AM
#1
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?
-
Jul 7th, 2007, 08:44 AM
#2
It might be more helpful if you give a sample of what you're looking for; your question seems too vague.
-
Jul 7th, 2007, 09:16 AM
#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.
-
Jul 8th, 2007, 02:41 PM
#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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules