throw new IllegalStateException("THIS SCOPE NOT USABLE");
MethodJoinpoint mj = (MethodJoinpoint)jp; MutexLocked props = (MutexLocked)advisor.resolveAnnotation(mj.getMethod(), MutexLocked.class); if (props.timeout() < 0) { return new MutexAspect.BlockingMutex(); } else if (props.timeout() == 0) { return new MutexAspect.TryLockMutex(); } else { return new MutexAspect.TimeoutMutex(props); }
return MutexAspectFactory.class.getName();