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

Gavin King gavin.king at jboss.com
Tue Oct 31 01:07:59 EST 2006


  User: gavin   
  Date: 06/10/31 01:07:59

  Modified:    src/main/org/jboss/seam/interceptors 
                        SecurityInterceptor.java
  Log:
  selectively install interceptors (smaller stacktraces)
  
  Revision  Changes    Path
  1.8       +1 -17     jboss-seam/src/main/org/jboss/seam/interceptors/SecurityInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SecurityInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/interceptors/SecurityInterceptor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- SecurityInterceptor.java	20 Oct 2006 01:21:13 -0000	1.7
  +++ SecurityInterceptor.java	31 Oct 2006 06:07:59 -0000	1.8
  @@ -1,12 +1,12 @@
   package org.jboss.seam.interceptors;
   
   import java.lang.reflect.Method;
  +
   import javax.interceptor.AroundInvoke;
   import javax.interceptor.InvocationContext;
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.jboss.seam.Component;
   import org.jboss.seam.annotations.Interceptor;
   import org.jboss.seam.annotations.Permission;
   import org.jboss.seam.annotations.Secure;
  @@ -27,22 +27,6 @@
   {
     private static final Log log = LogFactory.getLog(SecurityInterceptor.class);
   
  -  public static boolean isComponentSecure(Component component)
  -  {
  -    if (component.getBeanClass().isAnnotationPresent(Secure.class))
  -      return true;
  -    else
  -    {
  -      for (Method m : component.getBeanClass().getDeclaredMethods())
  -      {
  -        if (m.isAnnotationPresent(Secure.class))
  -          return true;
  -      }
  -    }
  -
  -    return false;
  -  }
  -
     @AroundInvoke
     public Object checkSecurity(InvocationContext invocation)
         throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list