Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/BasicSessionContext.java @ 338:3cfa4d908fc9
Add options to control DataAccessProvider, allow to turn off use of file memory mapping in particular to solve potential sharing violation (os file handle gets released on MappedByteByffer being GC'd, not on FileChannel.close())
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 15 Nov 2011 04:47:03 +0100 |
parents | 981f9f50bb6c |
children | b015f3918120 |
comparison
equal
deleted
inserted
replaced
337:f377f833b780 | 338:3cfa4d908fc9 |
---|---|
46 public LogFacility getLog() { | 46 public LogFacility getLog() { |
47 // e.g. for exceptions that we can't handle but log (e.g. FileNotFoundException when we've checked beforehand file.canRead() | 47 // e.g. for exceptions that we can't handle but log (e.g. FileNotFoundException when we've checked beforehand file.canRead() |
48 return logFacility; | 48 return logFacility; |
49 } | 49 } |
50 | 50 |
51 public Object getProperty(String name, Object defaultValue) { | |
52 String value = System.getProperty(name); | |
53 return value == null ? defaultValue : value; | |
54 } | |
51 } | 55 } |