cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From step...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap ComponentsSelector.java
Date Sun, 18 Aug 2002 07:58:15 GMT
stephan     2002/08/18 00:58:15

  Modified:    src/java/org/apache/cocoon/components/treeprocessor/sitemap
                        ComponentsSelector.java
  Log:
  Solves the problem with the current Avalon lib. The problem is that
  the ExcaliburComponentSelector want to get the hint via the
  configuration.
  > String instrumentableName =
  >             configuration.getAttribute( "instrumentable", configuration.getAttribute(
"name" ) );
  
  Revision  Changes    Path
  1.4       +12 -5     xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ComponentsSelector.java
  
  Index: ComponentsSelector.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ComponentsSelector.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ComponentsSelector.java	8 Aug 2002 03:21:28 -0000	1.3
  +++ ComponentsSelector.java	18 Aug 2002 07:58:15 -0000	1.4
  @@ -221,22 +221,29 @@
           // FIXME : need to catch exceptions since ECS doesn't propagate the throws clause
of Initializable
           try {
   
  -            Configuration emptyConfig = new DefaultConfiguration("", "");
  +            DefaultConfiguration config = null;
   
               // Ensure all system-defined hints exist.
               // NOTE : checking this here means they can be user-defined in the sitemap
               switch(this.roleId) {
                   case GENERATOR :
  +
  +                    config = new DefaultConfiguration(COMPONENT_NAMES[GENERATOR], "autogenerated");
  +                    config.setAttribute("name", "<notifier>");
                       ensureExists("<notifier>",
  -                        org.apache.cocoon.sitemap.NotifyingGenerator.class, emptyConfig);
  +                        org.apache.cocoon.sitemap.NotifyingGenerator.class, config);
   
  +                    config = new DefaultConfiguration(COMPONENT_NAMES[GENERATOR], "autogenerated");
  +                    config.setAttribute("name", "<aggregator>");
                       ensureExists("<aggregator>",
  -                        org.apache.cocoon.sitemap.ContentAggregator.class, emptyConfig);
  +                        org.apache.cocoon.sitemap.ContentAggregator.class, config);
                   break;
   
                   case TRANSFORMER :
  +                    config = new DefaultConfiguration(COMPONENT_NAMES[TRANSFORMER], "autogenerated");
  +                    config.setAttribute("name", "<translator>");
                       ensureExists("<translator>",
  -                        org.apache.cocoon.sitemap.LinkTranslator.class, emptyConfig);
  +                        org.apache.cocoon.sitemap.LinkTranslator.class, config);
                   break;
               }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message