comparison src/org/tmatesoft/hg/core/SessionContext.java @ 667:fba85bc1dfb8

Refactoring: move all encoding/decoding operations into single place, EncodingHelper
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 11 Jul 2013 17:54:08 +0200
parents e4ee4bf4c7d0
children 822f3a83ff57
comparison
equal deleted inserted replaced
666:27a3ddedd6cc 667:fba85bc1dfb8
70 * Providers of the context may implement 70 * Providers of the context may implement
71 */ 71 */
72 public interface Source { 72 public interface Source {
73 SessionContext getSessionContext(); 73 SessionContext getSessionContext();
74 } 74 }
75
76 public static final class SourcePrim implements Source {
77 private final SessionContext ctx;
78
79 public SourcePrim(SessionContext sessionContext) {
80 assert sessionContext != null;
81 ctx = sessionContext;
82 }
83 public SessionContext getSessionContext() {
84 return ctx;
85 }
86 }
75 } 87 }