Class KeyAwareAutoCloseableLock

java.lang.Object
org.testng.internal.KeyAwareAutoCloseableLock

public final class KeyAwareAutoCloseableLock extends Object
A simple abstraction over ReentrantLock that can be used when we need to be dealing with a dictionary of lockable objects wherein we traditionally would have used the synchronized keyword.