FileDocCategorySizeDatePackage
LatchAspect.javaAPI DocJBoss 4.2.11653Fri Jul 13 21:02:36 BST 2007org.jboss.aspects.concurrent

LatchAspect

public class LatchAspect extends Object
comment
author
Bill Burke

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectcheckLatch(org.jboss.aop.joinpoint.Invocation invocation)

      LatchedObject latched = (LatchedObject) invocation.getTargetObject();
      CountDownLatch latch = latched.getLatch();
      try
      {
         latch.await();
      }
      catch (InterruptedException e)
      {
         throw new RuntimeException(e);
      }
      return invocation.invokeNext();