cziegeler 2004/04/05 02:15:56 Modified: fortress/container-impl/src/java/org/apache/avalon/fortress/impl DefaultECMContainer.java Log: Add ECM compatible container implementation Revision Changes Path 1.2 +6 -11 avalon-excalibur/fortress/container-impl/src/java/org/apache/avalon/fortress/impl/DefaultECMContainer.java Index: DefaultECMContainer.java =================================================================== RCS file: /home/cvs/avalon-excalibur/fortress/container-impl/src/java/org/apache/avalon/fortress/impl/DefaultECMContainer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- DefaultECMContainer.java 5 Apr 2004 08:46:06 -0000 1.1 +++ DefaultECMContainer.java 5 Apr 2004 09:15:56 -0000 1.2 @@ -16,15 +16,10 @@ package org.apache.avalon.fortress.impl; import org.apache.avalon.fortress.MetaInfoEntry; -import org.apache.avalon.fortress.RoleManager; import org.apache.avalon.fortress.impl.ComponentHandlerMetaData; import org.apache.avalon.fortress.impl.DefaultContainer; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; -import org.apache.avalon.framework.context.Context; -import org.apache.avalon.framework.context.ContextException; -import org.apache.avalon.framework.service.ServiceException; -import org.apache.avalon.framework.service.ServiceManager; /** * Customize the Fortress container to handle ECM compatibility @@ -34,8 +29,6 @@ */ public class DefaultECMContainer extends DefaultContainer { - protected RoleManager m_roleManager; - /** * Retrieve the classname for component configuration. * @@ -67,7 +60,7 @@ return className; } - + /** * Provide some validation for the core Cocoon components * @@ -87,10 +80,12 @@ // Fortress requires a hint, so we just give it one :) hint = element.getLocation(); } - final String classname = getClassname( element ); + //final String role = getRole( element ); + final String className = getClassname( element ); + final int activation = ComponentHandlerMetaData.ACTIVATION_BACKGROUND; final ComponentHandlerMetaData metaData = - new ComponentHandlerMetaData( hint, classname, element, activation ); + new ComponentHandlerMetaData( hint, className, element, activation ); try { addComponent( metaData ); @@ -99,5 +94,5 @@ } } } - + }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]