You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by mp...@apache.org on 2003/02/10 23:39:42 UTC

cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/assemblerbroker TurbineAssemblerBrokerService.java

mpoeschl    2003/02/10 14:39:42

  Modified:    src/java/org/apache/turbine/services/assemblerbroker
                        TurbineAssemblerBrokerService.java
  Log:
  fix the AssemlerBroker
  using getConfiguration() we get the configuration for the service, so we must not add the service prefix to get the values
  
  Revision  Changes    Path
  1.4       +9 -8      jakarta-turbine-2/src/java/org/apache/turbine/services/assemblerbroker/TurbineAssemblerBrokerService.java
  
  Index: TurbineAssemblerBrokerService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/assemblerbroker/TurbineAssemblerBrokerService.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TurbineAssemblerBrokerService.java	8 Feb 2003 07:01:16 -0000	1.3
  +++ TurbineAssemblerBrokerService.java	10 Feb 2003 22:39:42 -0000	1.4
  @@ -63,6 +63,7 @@
   import org.apache.turbine.services.TurbineServices;
   import org.apache.turbine.services.assemblerbroker.util.AssemblerFactory;
   import org.apache.turbine.util.TurbineException;
  +import org.apache.commons.logging.*;
   
   /**
    * TurbineAssemblerBrokerService allows assemblers (like screens,
  @@ -77,6 +78,10 @@
       implements AssemblerBrokerService
   
   {
  +    /** the log */
  +    private static Log log
  +            = LogFactory.getLog(TurbineAssemblerBrokerService.class);
  +
       /** A structure that holds the registered AssemblerFactories*/
       private Hashtable factories = null;
   
  @@ -93,20 +98,16 @@
       }
   
       /**
  -     * Utiltiy method to register all factories for a given
  -     * type.
  +     * Utiltiy method to register all factories for a given type.
        */
       private void registerFactories (String type)
           throws TurbineException
       {
  -        String key = TurbineServices.SERVICE_PREFIX+
  -                     AssemblerBrokerService.SERVICE_NAME+
  -                     "."+
  -                     type;
  +        log.debug("registerFactories: key = " + type);
   
  -        String[] names = getConfiguration().getStringArray(key);
  +        String[] names = getConfiguration().getStringArray(type);
   
  -//        Log.info ("Registering " + names.length + " " + type + " factories.");
  +        log.info("Registering " + names.length + " " + type + " factories.");
   
           for (int i=0; i<names.length; i++)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org