1 23 24 package com.sun.jdo.spi.persistence.utility; 25 26 import java.util.ResourceBundle ; 27 import com.sun.jdo.spi.persistence.utility.logging.Logger; 28 29 34 public class NullSemaphore implements Semaphore { 37 39 private static final Logger _logger = LogHelperUtility.getLogger(); 40 41 43 private final String _owner; 44 45 48 private final static ResourceBundle messages = 49 I18NHelper.loadBundle(SemaphoreImpl.class); 50 51 public NullSemaphore(String owner) { 52 _owner = owner; 53 54 if (_logger.isLoggable(Logger.FINEST)) { 55 Object [] items = new Object [] {_owner}; 56 _logger.finest("utility.nullsemaphore.constructor",items); } 58 } 59 60 62 public void acquire() { 63 64 if (_logger.isLoggable(Logger.FINEST)) { 65 Object [] items = new Object [] {_owner}; 66 _logger.finest("utility.nullsemaphore.acquire",items); } 68 } 69 70 72 public void release() { 73 74 if (_logger.isLoggable(Logger.FINEST)) { 75 Object [] items = new Object [] {_owner}; 76 _logger.finest("utility.nullsemaphore.release",items); } 78 } 79 } 80 | Popular Tags |