Author: cziegeler
Date: Sat Oct 23 07:08:34 2004
New Revision: 55377

Modified:
   
cocoon/trunk/src/core/java/org/apache/cocoon/core/container/CocoonServiceManager.java
Log:
Minor updates

Modified: 
cocoon/trunk/src/core/java/org/apache/cocoon/core/container/CocoonServiceManager.java
==============================================================================
--- 
cocoon/trunk/src/core/java/org/apache/cocoon/core/container/CocoonServiceManager.java
       (original)
+++ 
cocoon/trunk/src/core/java/org/apache/cocoon/core/container/CocoonServiceManager.java
       Sat Oct 23 07:08:34 2004
@@ -141,8 +141,7 @@
 
         if( handler == null ) {
             final String message = "Could not find component";
-            if( this.getLogger().isDebugEnabled() )
-            {
+            if( this.getLogger().isDebugEnabled() ) {
                 this.getLogger().debug( message + " for role: " + role );
             }
             throw new ServiceException( role, message );
@@ -157,7 +156,6 @@
                 handler.initialize();
                 component = handler.get();
                 
-                this.initialize( role, component );
             } catch( final ServiceException ce ) {
                 // Rethrow instead of wrapping a ComponentException with 
another one
                 throw ce;
@@ -169,6 +167,7 @@
 
                 throw new ServiceException( role, message, e );
             }
+            this.initialize( role, component );
         } catch ( ServiceException se) {
             throw se;
         } catch( final Exception e ) {

Reply via email to