FileDocCategorySizeDatePackage
ReadWriteLockAspect.javaAPI DocJBoss 4.2.12228Fri Jul 13 21:02:26 BST 2007org.jboss.aspects.patterns.readwritelock

ReadWriteLockAspect

public class ReadWriteLockAspect extends Object
version
$Revision: 57186 $
author
{Claude Hussenet Independent Consultant}.

Fields Summary
private EDU.oswego.cs.dl.util.concurrent.ReadWriteLock
readWriteLock
Constructors Summary
public ReadWriteLockAspect()


    
   

   
Methods Summary
public java.lang.ObjectreadLockMethod(org.jboss.aop.joinpoint.MethodInvocation invocation)

      Object result=null;

      try
      {
         readWriteLock.readLock().acquire();
         result= invocation.invokeNext();
      }
      finally
      {
   		readWriteLock.readLock().release();
      }
      return result;
   
public java.lang.ObjectwriteLockMethod(org.jboss.aop.joinpoint.MethodInvocation invocation)

      Object result = null;

      try
      {
         readWriteLock.writeLock().acquire();
         result= invocation.invokeNext();
      }
      finally
      {
   		readWriteLock.writeLock().release();
      }
     return result;