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

MutexedObjectMixin

public class MutexedObjectMixin extends Object implements MutexedObject
comment
author
Bill Burke

Fields Summary
protected ReentrantLock
lock
Constructors Summary
public MutexedObjectMixin(Object obj)

      Mutexed m = obj.getClass().getAnnotation(Mutexed.class);
      lock = new ReentrantLock(m.isFair());
   
Methods Summary
public java.util.concurrent.locks.ReentrantLockgetMutex()

      return lock;