opensubscriber
   Find in this group all groups
 
Unknown more information…

s : server-dev@james.apache.org 6 September 2009 • 6:40PM -0400

Re: [smtp] Handler Configuration...?
by Norman Maurer

REPLY TO AUTHOR
 
REPLY TO GROUP




Comments inline...

2009/9/6 Robert Burrell Donkin <robertburrelldonkin@gmai...>:
> the services exposed through SMTPHandlerConfigurationData are now injected :-)
>
> all that's left is a simple POJO so i was wondering whether it might
> be worthwhile renaming to SMTPConfiguration and replacing the current
> interface with an immutable POJO. i agree with your point that the
> configuration methods i moved to SMTPSession don't really fit too well
> and should be moved probably by injecting the configuration. which
> brings us to configuration.

+1, There is no need for this interface anymore..


>
> ATM those handlers which need configuration either call the
> SMTPSession or implement Configurable. i would prefer to move away
> from the Avalon coupling for handlers but i'm not sure the best way
> forward.
>
+1 Move away from Avalon is the right choice. Why not inject a
CommonsConfiguration object and use this as configuration. We could
prolly build and Adapter which adapt a Avalon Configuration object to
Commons Configuration object. So we could at least elimate any Avalon
dependency in the handlers and hooks..

> opinions?
>
> - robert

Bye,
Norman

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@jame...
For additional commands, e-mail: server-dev-help@jame...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.