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

Gavin King gavin.king at jboss.com
Mon Jun 25 19:59:31 EDT 2007


  User: gavin   
  Date: 07/06/25 19:59:31

  Modified:    src/main/org/jboss/seam/intercept     Interceptor.java
                        SeamInvocationContext.java
  Added:       src/main/org/jboss/seam/intercept    
                        AbstractInterceptor.java OptimizedInterceptor.java
  Log:
  move builtin interceptors to the packages they relate to
  
  Revision  Changes    Path
  1.10      +1 -2      jboss-seam/src/main/org/jboss/seam/intercept/Interceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Interceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/intercept/Interceptor.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- Interceptor.java	25 Jun 2007 22:56:49 -0000	1.9
  +++ Interceptor.java	25 Jun 2007 23:59:31 -0000	1.10
  @@ -1,4 +1,4 @@
  -//$Id: Interceptor.java,v 1.9 2007/06/25 22:56:49 gavin Exp $
  +//$Id: Interceptor.java,v 1.10 2007/06/25 23:59:31 gavin Exp $
   package org.jboss.seam.intercept;
   
   import static org.jboss.seam.util.EJB.AROUND_INVOKE;
  @@ -13,7 +13,6 @@
   import org.jboss.seam.Component;
   import org.jboss.seam.annotations.intercept.AroundInvoke;
   import org.jboss.seam.annotations.intercept.InterceptorType;
  -import org.jboss.seam.interceptors.OptimizedInterceptor;
   import org.jboss.seam.util.Reflections;
   
   /**
  
  
  
  1.5       +1 -2      jboss-seam/src/main/org/jboss/seam/intercept/SeamInvocationContext.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SeamInvocationContext.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/intercept/SeamInvocationContext.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- SeamInvocationContext.java	22 Jun 2007 06:53:54 -0000	1.4
  +++ SeamInvocationContext.java	25 Jun 2007 23:59:31 -0000	1.5
  @@ -1,11 +1,10 @@
  -//$Id: SeamInvocationContext.java,v 1.4 2007/06/22 06:53:54 gavin Exp $
  +//$Id: SeamInvocationContext.java,v 1.5 2007/06/25 23:59:31 gavin Exp $
   package org.jboss.seam.intercept;
   
   import java.lang.reflect.Method;
   import java.util.List;
   import java.util.Map;
   
  -import org.jboss.seam.interceptors.OptimizedInterceptor;
   
   
   /**
  
  
  
  1.1      date: 2007/06/25 23:59:31;  author: gavin;  state: Exp;jboss-seam/src/main/org/jboss/seam/intercept/AbstractInterceptor.java
  
  Index: AbstractInterceptor.java
  ===================================================================
  //$Id: AbstractInterceptor.java,v 1.1 2007/06/25 23:59:31 gavin Exp $
  package org.jboss.seam.intercept;
  
  import java.io.Serializable;
  
  import org.jboss.seam.Component;
  
  /**
   * Superclass of built-in interceptors
   * 
   * @author Gavin King
   */
  public abstract class AbstractInterceptor implements Serializable, OptimizedInterceptor
  {
     private static final long serialVersionUID = -8838873111255032911L;
     private transient Component component; //a cache of the Component reference
     private String componentName;
  
     public void setComponent(Component component)
     {
        componentName = component.getName();
        this.component = component;
     }
  
     protected Component getComponent()
     {
        if (component==null)
        {
           component = Component.forName(componentName);
        }
        return component;
     }
  
  }
  
  
  
  1.1      date: 2007/06/25 23:59:31;  author: gavin;  state: Exp;jboss-seam/src/main/org/jboss/seam/intercept/OptimizedInterceptor.java
  
  Index: OptimizedInterceptor.java
  ===================================================================
  package org.jboss.seam.intercept;
  
  /**
   * Interface that may be optionally implemented by an
   * interceptor, to make the stacktrace smaller.
   * 
   * @author Gavin King
   *
   */
  public interface OptimizedInterceptor
  {
     public Object aroundInvoke(InvocationContext ic) throws Exception;
  }
  
  
  



More information about the jboss-cvs-commits mailing list