cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/components/language/generator GeneratorSelector.java
Date Wed, 11 Apr 2001 16:39:39 GMT
bloritsch    01/04/11 09:39:39

  Modified:    lib      Tag: xml-cocoon2 avalonapi.jar
               src/org/apache/cocoon/components/language/generator Tag:
                        xml-cocoon2 GeneratorSelector.java
  Log:
  Added fix so GeneratorSelector compiles
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.42  +654 -646  xml-cocoon/lib/Attic/avalonapi.jar
  
  	<<Binary file>>
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.10  +7 -3      xml-cocoon/src/org/apache/cocoon/components/language/generator/Attic/GeneratorSelector.java
  
  Index: GeneratorSelector.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/generator/Attic/GeneratorSelector.java,v
  retrieving revision 1.1.2.9
  retrieving revision 1.1.2.10
  diff -u -r1.1.2.9 -r1.1.2.10
  --- GeneratorSelector.java	2001/04/11 12:41:18	1.1.2.9
  +++ GeneratorSelector.java	2001/04/11 16:39:39	1.1.2.10
  @@ -26,15 +26,19 @@
    * includes Sitemaps and XSP Pages
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.2.9 $ $Date: 2001/04/11 12:41:18 $
  + * @version CVS $Revision: 1.1.2.10 $ $Date: 2001/04/11 16:39:39 $
    */
   public class GeneratorSelector extends DefaultComponentSelector {
       private ClassLoaderManager classManager;
   
  -    public void compose (ComponentManager manager) throws ComponentManagerException {
  +    public void compose (ComponentManager manager) throws ComponentException {
           super.compose(manager);
   
  -        this.classManager = (ClassLoaderManager) manager.lookup(Roles.CLASS_LOADER);
  +        try {
  +            this.classManager = (ClassLoaderManager) manager.lookup(Roles.CLASS_LOADER);
  +        } catch (ComponentManagerException cme) {
  +            throw new ComponentException("GeneratorSelector", cme);
  +        }
   
           try {
               this.classManager.addDirectory((File) this.m_context.get(Constants.CONTEXT_WORK_DIR));
  
  
  

----------------------------------------------------------------------
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