cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody DefaultFormManager.java
Date Wed, 14 May 2003 13:19:49 GMT
bruno       2003/05/14 06:19:48

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody
                        DefaultFormManager.java
  Log:
  minor changes
  
  Revision  Changes    Path
  1.6       +4 -3      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/DefaultFormManager.java
  
  Index: DefaultFormManager.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/DefaultFormManager.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DefaultFormManager.java	14 May 2003 12:53:02 -0000	1.5
  +++ DefaultFormManager.java	14 May 2003 13:19:43 -0000	1.6
  @@ -57,6 +57,7 @@
   import org.apache.excalibur.source.SourceValidity;
   import org.apache.excalibur.store.Store;
   import org.apache.avalon.framework.CascadingException;
  +import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.avalon.framework.configuration.Configurable;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
  @@ -77,7 +78,7 @@
   /**
    * Component implementing the {@link FormManager} role.
    */
  -public class DefaultFormManager implements FormManager, ThreadSafe, Composable, Disposable,
Configurable {
  +public class DefaultFormManager extends AbstractLogEnabled implements FormManager, ThreadSafe,
Composable, Disposable, Configurable {
       private ComponentManager componentManager;
       private Map widgetDefinitionBuilders = new HashMap();
       private FormDefinitionBuilder formDefinitionBuilder;
  @@ -93,7 +94,7 @@
           // get available widgets from configuration
           Configuration[] widgetConfs = configuration.getChild("widgets").getChildren("widget");
           if (widgetConfs.length == 0)
  -            throw new ConfigurationException("No widgets found in FormManager configuration.");
  +            getLogger().warn("No Woody widgets found in FormManager configuration.");
   
           for (int i = 0; i < widgetConfs.length; i++) {
               String name = widgetConfs[i].getAttribute("name");
  @@ -102,7 +103,7 @@
               try {
                   clazz = Class.forName(factoryClassName);
               } catch (Exception e) {
  -                throw new ConfigurationException("Could not load class \"" + factoryClassName
+ "\" specified at " + configuration.getLocation(), e);
  +                throw new ConfigurationException("Could not load class \"" + factoryClassName
+ "\" specified at " + widgetConfs[i].getLocation(), e);
               }
               WidgetDefinitionBuilder widgetDefinitionBuilder;
               try {
  
  
  

Mime
View raw message