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

Shane Bryzak sbryzak at redhat.com
Sun Nov 11 23:02:24 EST 2007


  User: sbryzak2
  Date: 07/11/11 23:02:24

  Modified:    src/main/org/jboss/seam  Component.java
  Log:
  JBSEAM-2238
  
  Revision  Changes    Path
  1.287     +10 -2     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.286
  retrieving revision 1.287
  diff -u -b -r1.286 -r1.287
  --- Component.java	12 Oct 2007 05:07:44 -0000	1.286
  +++ Component.java	12 Nov 2007 04:02:24 -0000	1.287
  @@ -123,6 +123,7 @@
   import org.jboss.seam.util.Sorter;
   import org.jboss.seam.util.Conversions.PropertyValue;
   import org.jboss.seam.web.Parameters;
  +import org.jboss.seam.webservice.WSSecurityInterceptor;
   
   /**
    * Metamodel class for component classes.
  @@ -1044,9 +1045,16 @@
         }
         if ( beanClassHasAnnotation(Restrict.class) )
         {
  +         if (beanClassHasAnnotation("javax.jws.WebService"))
  +         {
  +            addInterceptor( new Interceptor( new WSSecurityInterceptor(), this ) );
  +         }
  +         else
  +         {
           addInterceptor( new Interceptor( new SecurityInterceptor(), this ) );
         }
      }
  +   }
   
      private static boolean hasAnnotation(Class clazz, Class annotationType)
      {
  
  
  



More information about the jboss-cvs-commits mailing list