[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...

Christian Bauer christian.bauer at jboss.com
Thu Sep 28 18:38:45 EDT 2006


  User: cbauer  
  Date: 06/09/28 18:38:45

  Modified:    src/main/org/jboss/seam  Component.java
  Log:
  Helpful log messages, remove them if they are a performance problem
  
  Revision  Changes    Path
  1.167     +59 -56    jboss-seam/src/main/org/jboss/seam/Component.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Component.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
  retrieving revision 1.166
  retrieving revision 1.167
  diff -u -b -r1.166 -r1.167
  --- Component.java	28 Sep 2006 22:31:40 -0000	1.166
  +++ Component.java	28 Sep 2006 22:38:45 -0000	1.167
  @@ -104,7 +104,7 @@
    *
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
    * @author Gavin King
  - * @version $Revision: 1.166 $
  + * @version $Revision: 1.167 $
    */
   @Scope(ScopeType.APPLICATION)
   public class Component
  @@ -1621,12 +1621,14 @@
         Object result;
         if ( name.startsWith("#") )
         {
  +         log.debug("trying to inject with EL expression: " + name);
            FacesContext facesCtx = FacesContext.getCurrentInstance();
            Application application = facesCtx.getApplication();
            result = application.createValueBinding(name).getValue(facesCtx);
         }
         else if ( in.scope()==UNSPECIFIED )
         {
  +         log.debug("trying to inject with hierarchical context search: " + name);
            result = getInstance( name, in.create() );
         }
         else
  @@ -1638,6 +1640,7 @@
                     getAttributeMessage(name)
                  );
            }
  +         log.debug("trying to inject from context: " + name + ", scope: " + scope);
            result = in.scope().getContext().get(name);
         }
   
  
  
  



More information about the jboss-cvs-commits mailing list