Coverage Report - net.wotonomy.access.EOAccessLock
 
Classes in this File Line Coverage Branch Coverage Complexity
EOAccessLock
0% 
N/A 
1
 
 1  
 /*
 2  
  Wotonomy: OpenStep design patterns for pure Java applications.
 3  
  Copyright (C) 2001 Michael Powers
 4  
 
 5  
  This library is free software; you can redistribute it and/or
 6  
  modify it under the terms of the GNU Lesser General Public
 7  
  License as published by the Free Software Foundation; either
 8  
  version 2.1 of the License, or (at your option) any later version.
 9  
 
 10  
  This library is distributed in the hope that it will be useful,
 11  
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 13  
  Lesser General Public License for more details.
 14  
 
 15  
  You should have received a copy of the GNU Lesser General Public
 16  
  License along with this library; if not, see http://www.gnu.org
 17  
  */
 18  
 package net.wotonomy.access;
 19  
 
 20  
 import net.wotonomy.foundation.NSRecursiveLock;
 21  
 
 22  
 /**
 23  
  * This class offers a very simple interface to a global locking
 24  
  * mechanism to be used by the whole access layer.
 25  
  *
 26  
  * @author ezamudio@nasoft.com
 27  
  * @author $Author: cgruber $
 28  
  * @version $Revision: 894 $
 29  
  */
 30  0
 public class EOAccessLock {
 31  
 
 32  0
         private static NSRecursiveLock _lock = new NSRecursiveLock();
 33  
 
 34  
         private EOAccessLock() {
 35  0
                 super();
 36  0
         }
 37  
 
 38  
         public static void lock() {
 39  0
                 _lock.lock();
 40  0
         }
 41  
 
 42  
         public static void unlock() {
 43  0
                 _lock.unlock();
 44  0
         }
 45  
 
 46  
 }
 47  
 /*
 48  
  * $Log$
 49  
  * Revision 1.2  2006/02/16 16:47:13  cgruber
 50  
  * Move some classes in to "internal" packages and re-work imports, etc.
 51  
  *
 52  
  * Also use UnsupportedOperationExceptions where appropriate, instead of WotonomyExceptions.
 53  
  *
 54  
  * Revision 1.1  2006/02/16 13:19:57  cgruber
 55  
  * Check in all sources in eclipse-friendly maven-enabled packages.
 56  
  *
 57  
  * Revision 1.1  2003/08/29 20:43:25  chochos
 58  
  * a global access layer lock
 59  
  *
 60  
  */