org.entityfs.lock
Class DummyLock

java.lang.Object
  extended by org.entityfs.lock.NoObjectDummyLock
      extended by org.entityfs.lock.DummyLock
All Implemented Interfaces:
Lock, EntityLock

public class DummyLock
extends NoObjectDummyLock

This is a dummy EntityLock. It is returned from the locking methods defined in EntityView if the file system is not locking.

Since:
1.0
Author:
Karl Gustafsson

Field Summary
 
Fields inherited from class org.entityfs.lock.NoObjectDummyLock
INSTANCE
 
Constructor Summary
DummyLock(Lockable locked)
           
 
Method Summary
 Lockable getLocked()
          Get the locked object.
 
Methods inherited from class org.entityfs.lock.NoObjectDummyLock
getHoldCount, isDummy, isHeldByCurrentThread, isReadLock, isWriteLock, lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyLock

public DummyLock(Lockable locked)
Method Detail

getLocked

public Lockable getLocked()
Description copied from interface: EntityLock
Get the locked object. For locks that are not connected to any particular object (dummy locks, mostly), this method returns null.

Specified by:
getLocked in interface EntityLock
Overrides:
getLocked in class NoObjectDummyLock
Returns:
null, always.