Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/BasicSessionContext.java @ 665:dde18bc7053b v1.2m1
Test Copy-on-Write transactions
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 10 Jul 2013 20:16:37 +0200 |
parents | 909306e412e2 |
children |
comparison
equal
deleted
inserted
replaced
664:ae2d439fbed3 | 665:dde18bc7053b |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011-2012 TMate Software Ltd | 2 * Copyright (c) 2011-2013 TMate Software Ltd |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
5 * it under the terms of the GNU General Public License as published by | 5 * it under the terms of the GNU General Public License as published by |
6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
7 * | 7 * |
26 /** | 26 /** |
27 * | 27 * |
28 * @author Artem Tikhomirov | 28 * @author Artem Tikhomirov |
29 * @author TMate Software Ltd. | 29 * @author TMate Software Ltd. |
30 */ | 30 */ |
31 public class BasicSessionContext extends SessionContext { | 31 public class BasicSessionContext extends SessionContext implements SessionContext.Source { |
32 | 32 |
33 private LogFacility logFacility; | 33 private LogFacility logFacility; |
34 private final Map<String, Object> properties; | 34 private final Map<String, Object> properties; |
35 | 35 |
36 public BasicSessionContext(LogFacility log) { | 36 public BasicSessionContext(LogFacility log) { |
66 return value; | 66 return value; |
67 } | 67 } |
68 value = System.getProperty(name); | 68 value = System.getProperty(name); |
69 return value == null ? defaultValue : value; | 69 return value == null ? defaultValue : value; |
70 } | 70 } |
71 | |
72 public SessionContext getSessionContext() { | |
73 return this; | |
74 } | |
71 } | 75 } |