james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject RE: smtp-handler-api and merge to trunk
Date Tue, 11 Jul 2006 19:08:00 GMT
Stefano Bagnara wrote:

> Noel J. Bergman wrote:
> > For example, by the time we're
> > done, I expect that configure() will be replaced by init(), and
> > we'll have eliminated the Avalon API from polluting the code.

> I don't think that eliminating Avalon API from the code will be so easy.

It won't be so hard if we stop propogating the Avalon API where it doesn't
belong and isn't needed.

> We have the same problems that we have in Mailets: if you need a service
> you have to be Serviceable or to lookup the ServiceManager from the

Mailets ought to access key services via the MailetContext.  That is why we
have MailetConfig and MailetContext, just like the Servlet API.  Mailets
were never supposed to deal with Avalon.  The few that had to were
aberrations that were supposed to be fixed by improving the Mailet

> Imho moving to init is probably a bad move: I prefer to have a clear
> dependency on Avalon instead of having an hidden/subtle dependency on
> Avalon.

I want NO dependency on Avalon.  The handlers should follow the same
pattern.  The key services can be exposed by passing in a config from which
we can get to a HandlerContext.

	--- Noel

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message