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

Gavin King gavin.king at jboss.com
Tue Oct 10 00:48:21 EDT 2006


  User: gavin   
  Date: 06/10/10 00:48:21

  Added:       src/main/org/jboss/seam/interceptors 
                        SynchronizationInterceptor.java
  Log:
  JBSEAM-399 @Synchronized
  
  Revision  Changes    Path
  1.1      date: 2006/10/10 04:48:21;  author: gavin;  state: Exp;jboss-seam/src/main/org/jboss/seam/interceptors/SynchronizationInterceptor.java
  
  Index: SynchronizationInterceptor.java
  ===================================================================
  //$Id: SynchronizationInterceptor.java,v 1.1 2006/10/10 04:48:21 gavin Exp $
  package org.jboss.seam.interceptors;
  
  import javax.interceptor.AroundInvoke;
  import javax.interceptor.InvocationContext;
  
  import org.jboss.seam.InterceptorType;
  import org.jboss.seam.annotations.Interceptor;
  
  /**
   * Serializes calls to a component.
   * 
   * @author Gavin King
   */
  @Interceptor(stateless=true, type=InterceptorType.CLIENT)
  public class SynchronizationInterceptor extends AbstractInterceptor
  {
     
     @AroundInvoke
     public synchronized Object serialize(InvocationContext invocation) throws Exception
     {
        return invocation.proceed();
     }
  
  
  }
  
  
  



More information about the jboss-cvs-commits mailing list