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: [PATCH] mbox mail repository V2
Date Sun, 17 Aug 2003 20:43:45 GMT

If you are proposing that we add:

    void remove(Collection);

to the org.apache.james.services.MailRepository interface, and to the
implementations, I agree.  I think that would be the cleanest solution, at
least until we can replace/redesign MailRepository.

What shall the Collection hold?  Our choices seem to be Collection<MailImpl>
or Collection<String>, which match the existing remove methods.  Neither is
exposed to the Mailet API, although this is not an issue for services.
Collection<Mail> would be castable internally, and matches what we actually
have at the moment.  Collection<String> is lighterweight.

FWIW, I have to say that I am not comfortable with the lack of exception
handling in the MailRepository interface.  Throwing RuntimeException is
evil.  However, I don't think that a redesign is necessary to add
remove(Collection).  The question about exception handling comes up because
we ought to throw an exception chain for all failures, and we can't do that
with normal Throwable prior to JDK 1.4 (hence all of the ad hoc chained
exception classes in other parts of Java).

What does everyone think?

	--- 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