Venkataraman, Narendra wrote:
How would we configure a handler class that implements both
CommandHandler and Message Handler?
Will the DataCommandHandler call all the commandhandlers to see if they
want add any header to final message?

You can specify the same class as commandHandler and as messageHandler.
Handlers are threadsafe and stateless, so they can share informations via "SMTPSession.getState". Data shared in that map would be a "shared space" in this first refactoring, but I think we will move forward by changing the whole thing using dependencies between handlers and extension points in handlers.

My motto is that it is better to make some step now instead of thinking you can try to jump too long tomorrow. Refactoring in one of the best java weapons!

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to