/[Apache-SVN]/cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java
ViewVC logotype

Diff of /cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java	2005/04/22 11:01:43	164218
+++ cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java	2005/04/22 11:03:32	164219
@@ -133,13 +133,6 @@ public class CoreServiceManager
         // Always create a role manager, it can be filled several times either through
         // the root "roles" attribute or through loading of includes
         this.roleManager = new RoleManager(parentRoleManager);
-        
-        // get settings
-        try {
-            this.settings = ((Core)parent.lookup(Core.ROLE)).getSettings();
-        } catch (ServiceException ignore) {
-            // this can never happen!
-        }
     }
 
     //=============================================================================================
@@ -157,8 +150,10 @@ public class CoreServiceManager
     /* (non-Javadoc)
      * @see org.apache.avalon.framework.context.Contextualizable#contextualize(org.apache.avalon.framework.context.Context)
      */
-    public void contextualize( final Context context ) {
+    public void contextualize( final Context context ) 
+    throws ContextException {
         this.context = context;
+        this.settings = ((Core)context.get(Core.ROLE)).getSettings();
     }
 
     /**

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26