Hi,

In my tapestry app I'm trying to figure how to log the code of the Enhanced
class.  I dug through the sources and found that in the
EnhancementOperationImpl there is this statement:

       if (_log != null)
           _log.debug("Creating class:\n\n" + _classFab);


EnhancementOperationImpl in turn is called by
ComponentConstructorFactoryImpl

ComponentConstructorFactoryImpl has a
   public void setLog(Log log)


And an instance of ComponentConstructorFactoryImpl gets created in the
tapestry.enhance.xml

   <invoke-factory>
     <construct class="
org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl ">
       <set-service property="classFactory" service-id="
hivemind.ClassFactory"/>
       <event-listener service-id="tapestry.ResetEventHub"/>
       <event-listener service-id=" tapestry.describe.ReportStatusHub"/>
       <set-service property="validator"
service-id="EnhancedClassValidator"/>
       <set-service property="chain" service-id="EnhancementWorkerChain"/>
     </construct>
   </invoke-factory>

My question is - can I do something about being able to pass a new Log
object to the setLog method via the hivemind configuration?

Thanks, Karthik

Reply via email to