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

Gavin King gavin.king at jboss.com
Mon Sep 18 18:26:00 EDT 2006


  User: gavin   
  Date: 06/09/18 18:26:00

  Modified:    src/main/org/jboss/seam/interceptors 
                        BijectionInterceptor.java
  Log:
  JBSEAM-22 disinjection
  
  Revision  Changes    Path
  1.17      +10 -5     jboss-seam/src/main/org/jboss/seam/interceptors/BijectionInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BijectionInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/interceptors/BijectionInterceptor.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- BijectionInterceptor.java	8 Sep 2006 00:13:40 -0000	1.16
  +++ BijectionInterceptor.java	18 Sep 2006 22:25:59 -0000	1.17
  @@ -1,7 +1,6 @@
  -//$Id: BijectionInterceptor.java,v 1.16 2006/09/08 00:13:40 gavin Exp $
  +//$Id: BijectionInterceptor.java,v 1.17 2006/09/18 22:25:59 gavin Exp $
   package org.jboss.seam.interceptors;
   
  -import java.lang.annotation.Annotation;
   import java.lang.reflect.Method;
   
   import javax.annotation.PostConstruct;
  @@ -13,11 +12,8 @@
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.jboss.seam.Component;
   import org.jboss.seam.annotations.Create;
   import org.jboss.seam.annotations.Destroy;
  -import org.jboss.seam.annotations.In;
  -import org.jboss.seam.annotations.RequestParameter;
   
   /**
    * Before invoking the component, inject all dependencies. After
  @@ -61,6 +57,15 @@
            component.outject( invocation.getTarget(), isLifecycleMethod( invocation.getMethod() ) );
         }
         
  +      if ( component.needsInjection() ) //only needed to hush the log message
  +      {
  +         if ( log.isTraceEnabled() )
  +         {
  +            log.trace("disinjecting dependencies of: " + component.getName());
  +         }
  +         component.disinject( invocation.getTarget() );
  +      }
  +      
         //method parameter injection?
         /*Method method = invocation.getMethod();
         if (method!=null) //TODO: YEW! for unit tests
  
  
  



More information about the jboss-cvs-commits mailing list