[Danny]
I favour URL's,
which allow repositories to be created dynamically by mailets without extra
config changes

-------------------

IMHO this is equivalent to variable usage without explicit declaration.  I
would far prefer to see a section in the config file that defines and names
all of my repositories.  (The name would then get used in the Mailet - and
throughout JAMES.)  This eliminates the possibility of a typo causing a new
repository to be created and used.


Cheers

ADK




--------------------------------------------

There is no magic.


                                                                                       
                                          
                    "Danny Angus"                                                      
                                          
                    <danny@apache.       To:     "James Developers List" 
<[EMAIL PROTECTED]>                          
                    org>                 cc:                                           
                                          
                                         Subject:     RE: Avalon dependance in mailets 
                                          
                    07/01/2003                                                         
                                          
                    01:40                                                              
                                          
                    Please respond                                                     
                                          
                    to "James                                                          
                                          
                    Developers                                                         
                                          
                    List"                                                              
                                          
                                                                                       
                                          
                                                                                       
                                          




Hi,

My next step is a little less clear, and requires some decision making,

I'm going to do the same thing for user repositories, so that
getMailetContext().getUserRepository(String name)
returns a UserRepository, however I don't like the incosistency between URL
specifications for MailRepositories and names for UserRepositories.

We need, IMO, to select one style and use it consistently, I favour URL's,
which allow repositories to be created dynamically by mailets without extra
config changes, but what are the other opinions? Technnically its not a big
issue but in order to ensure portability of mailets, the primary objective
of the excercise, we need to document what the string can contain.

I'm going to implement getMailetContext().getUserRepository(String name) on
the basis that it doesn't break existing configurations, and changing it to
getMailetContext().getUserRepository(String URL) later is not really a
change to the method signature, but an implementation detail.




> -----Original Message-----
> From: Danny Angus [mailto:[EMAIL PROTECTED]]

> I've started commiting changes I've made which remove avalon
> dependance from
> the standard mailets.
> Starting with repository access,


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






-----------------------------------------------------------------------------------------------
Have you seen our website?.... http://www.vodafone.co.nz

CAUTION: This correspondence is confidential and intended for the named recipient(s) 
only.
If you are not the named recipient and receive this correspondence in error, you must 
not copy,
distribute or take any action in reliance on it and you should delete it from your 
system and
notify the sender immediately.  Thank you.

Unless otherwise stated, any views or opinions expressed are solely those of the 
author and do
not represent those of Vodafone New Zealand Limited.

Vodafone New Zealand Limited
21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand
Telephone + 64 9 357 5100
Facsimile + 64 9 377 0962

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

Reply via email to