1 package org.columba.core.command; 17 18 import org.columba.api.command.ICommandReference; 19 import org.columba.core.base.Lock; 20 21 26 public class DefaultCommandReference implements ICommandReference { 27 30 protected Lock lock = new Lock(); 31 32 40 public boolean tryToGetLock(Object locker) { 41 return lock.tryToGetLock(locker); 42 } 43 44 47 public void releaseLock(Object locker) { 48 lock.release(locker); 49 } 50 } | Popular Tags |