Big refactor: *Connection hierarchy
commit4ec98bfe0237183d29b98119b8dce82938d632cd
authorMarek Zawirski <marek.zawirski@gmail.com>
Fri, 27 Jun 2008 22:06:33 +0000 (28 00:06 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 28 Jun 2008 10:06:42 +0000 (28 12:06 +0200)
treecba5af60a5ac86c474a1364f307a7c078ca6346b
parent080e816c5f372cceceae0e1c46737ca37bb45f40
Big refactor: *Connection hierarchy

New interfaces and base classes are introduced to cope with lack of
multiple inheritance and allow code reuse between fetch and push
operations implementations. Some renames (adding Base prefix) are also
performed to distinct between interfaces and base implementations.

Some generalizations/cleanings in interfaces and implementations
(particularly in Base* classes) were introduced. readAdvertisedRefs() in
BasePackConnection now support both push and fetch advertisements.

Signed-off-by: Marek Zawirski <marek.zawirski@gmail.com>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
14 files changed:
org.spearce.jgit/src/org/spearce/jgit/transport/BaseConnection.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/BaseFetchConnection.java [copied from org.spearce.jgit/src/org/spearce/jgit/transport/PushConnection.java with 52% similarity]
org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/BasePackFetchConnection.java [moved from org.spearce.jgit/src/org/spearce/jgit/transport/PackFetchConnection.java with 76% similarity]
org.spearce.jgit/src/org/spearce/jgit/transport/Connection.java [copied from org.spearce.jgit/src/org/spearce/jgit/transport/PushConnection.java with 53% similarity]
org.spearce.jgit/src/org/spearce/jgit/transport/FetchConnection.java
org.spearce.jgit/src/org/spearce/jgit/transport/FetchProcess.java
org.spearce.jgit/src/org/spearce/jgit/transport/PackTransport.java
org.spearce.jgit/src/org/spearce/jgit/transport/PushConnection.java
org.spearce.jgit/src/org/spearce/jgit/transport/TransportBundle.java
org.spearce.jgit/src/org/spearce/jgit/transport/TransportGitAnon.java
org.spearce.jgit/src/org/spearce/jgit/transport/TransportGitSsh.java
org.spearce.jgit/src/org/spearce/jgit/transport/TransportLocal.java
org.spearce.jgit/src/org/spearce/jgit/transport/WalkFetchConnection.java