org.entityfs.lock.cmd
Class AbstractLockCommand

java.lang.Object
  extended by org.entityfs.lock.cmd.AbstractLockCommand
All Implemented Interfaces:
LockCommand
Direct Known Subclasses:
LockForReadingCommand, LockForWritingCommand, LockParentForReadingCommand, LockParentForWritingCommand

public abstract class AbstractLockCommand
extends Object
implements LockCommand


Constructor Summary
protected AbstractLockCommand(ReadWriteLockable lockable)
           
 
Method Summary
 ReadWriteLockable getLockable()
          Get the lockable object that this lock command is for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLockCommand

protected AbstractLockCommand(ReadWriteLockable lockable)
Method Detail

getLockable

public ReadWriteLockable getLockable()
Description copied from interface: LockCommand
Get the lockable object that this lock command is for.

Specified by:
getLockable in interface LockCommand
Returns:
The lock command's lockable object.