diff 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
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/SessionContext.java	Wed Jul 10 20:22:07 2013 +0200
+++ b/src/org/tmatesoft/hg/core/SessionContext.java	Thu Jul 11 17:54:08 2013 +0200
@@ -72,4 +72,16 @@
 	public interface Source {
 		SessionContext getSessionContext();
 	}
+	
+	public static final class SourcePrim implements Source {
+		private final SessionContext ctx;
+
+		public SourcePrim(SessionContext sessionContext) {
+			assert sessionContext != null;
+			ctx = sessionContext;
+		}
+		public SessionContext getSessionContext() {
+			return ctx;
+		}
+	}
 }