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/datatype DefaultDatatypeManager.java
Date Tue, 15 Jul 2003 14:10:07 GMT
bruno       2003/07/15 07:10:07

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/datatype
                        DefaultDatatypeManager.java
  Log:
  Supply configuration to components.
  
  Revision  Changes    Path
  1.3       +2 -2      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/DefaultDatatypeManager.java
  
  Index: DefaultDatatypeManager.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/datatype/DefaultDatatypeManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultDatatypeManager.java	14 May 2003 13:19:26 -0000	1.2
  +++ DefaultDatatypeManager.java	15 Jul 2003 14:10:07 -0000	1.3
  @@ -80,8 +80,6 @@
       private ComponentManager componentManager;
   
       public void configure(Configuration configuration) throws ConfigurationException {
  -        LifecycleHelper lifecycleHelper = new LifecycleHelper(null, null, componentManager,
null, null, null);
  -
           // read available datatypes from configuration
           Configuration[] datatypeConfs = configuration.getChild("datatypes").getChildren("datatype");
           if (datatypeConfs.length == 0)
  @@ -99,6 +97,7 @@
               DatatypeBuilder datatypeBuilder;
               try {
                   datatypeBuilder = (DatatypeBuilder)clazz.newInstance();
  +                LifecycleHelper lifecycleHelper = new LifecycleHelper(null, null, componentManager,
null, null, datatypeConfs[i]);
                   lifecycleHelper.setupComponent(datatypeBuilder);
               } catch (Exception e) {
                   throw new ConfigurationException("Could not create DatatypeBuilder \""
+ factoryClassName + "\"", e);
  @@ -123,6 +122,7 @@
               ValidationRuleBuilder validationRuleBuilder;
               try {
                   validationRuleBuilder = (ValidationRuleBuilder)clazz.newInstance();
  +                LifecycleHelper lifecycleHelper = new LifecycleHelper(null, null, componentManager,
null, null, validationRuleConfs[i]);
                   lifecycleHelper.setupComponent(validationRuleBuilder);
               } catch (Exception e) {
                   throw new ConfigurationException("Could not create ValidationRuleBuilder
\"" + factoryClassName + "\"", e);
  
  
  

Mime
View raw message