You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by se...@apache.org on 2001/11/01 18:44:48 UTC

cvs commit: jakarta-james/src/java/org/apache/james/core AvalonMailStore.java

serge       01/11/01 09:44:48

  Modified:    src/java/org/apache/james/core AvalonMailStore.java
  Log:
  Added stack trace printing.
  
  Revision  Changes    Path
  1.8       +10 -11    jakarta-james/src/java/org/apache/james/core/AvalonMailStore.java
  
  Index: AvalonMailStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/core/AvalonMailStore.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AvalonMailStore.java	2001/09/27 21:12:17	1.7
  +++ AvalonMailStore.java	2001/11/01 17:44:48	1.8
  @@ -35,7 +35,7 @@
    * Provides Registry of mail repositories. A mail repository is uniquely
    * identified
    * by destinationURL, type and model.
  - * 
  + *
    * @author <a href="mailto:fede@apache.org">Federico Barbieri</a>
    * @author Darrell DeBoer <dd...@bigdaz.com>
    */
  @@ -119,7 +119,7 @@
               for ( int j = 0; j < types.length; j++ )
               {
                   String type = types[j].getValue();
  -		String key = protocol + type ;
  +        String key = protocol + type ;
                   classes.put(key, className);
                   getLogger().info("Registered class: " + key+"->"+className);
               }
  @@ -176,8 +176,8 @@
                   getLogger().debug( "Need instance of " + repClass +
                                      " to handle: " + protocol + "," + type  );
   
  -                // If default values have been set, create a new repository 
  -                // configuration element using the default values 
  +                // If default values have been set, create a new repository
  +                // configuration element using the default values
                   // and the values in the selector.
                   // If no default values, just use the selector.
                   Configuration config;
  @@ -186,17 +186,16 @@
                       config = repConf;
                   }
                   else {
  -                    config = new DefaultConfiguration(repConf.getName(), 
  +                    config = new DefaultConfiguration(repConf.getName(),
                                                         repConf.getLocation());
                       copyConfig(defConf, (DefaultConfiguration)config);
                       copyConfig(repConf, (DefaultConfiguration)config);
                   }
  - 
  +
                   try {
  -                    reply
  -                    = (MailRepository) Class.forName(repClass).newInstance();
  -                   if (reply instanceof Loggable) {
  -		       setupLogger(reply);
  +                    reply = (MailRepository) Class.forName(repClass).newInstance();
  +                    if (reply instanceof Loggable) {
  +                       setupLogger(reply);
                       }
                       if (reply instanceof Contextualizable) {
                           ((Contextualizable) reply).contextualize(context);
  @@ -216,7 +215,7 @@
                   } catch (Exception e) {
                       getLogger().warn( "Exception while creating repository:" +
                                         e.getMessage(), e );
  -
  +                    e.printStackTrace();
                       throw new
                           ComponentException("Cannot find or init repository",
                                              e);
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>