]> source.dussan.org Git - jgit.git/commit
Register TransportProtocols using services 67/2667/2
authorShawn O. Pearce <spearce@spearce.org>
Mon, 7 Mar 2011 23:39:03 +0000 (15:39 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 13 Mar 2011 23:23:56 +0000 (16:23 -0700)
commit565fa6f9b15da98b9c508ab6129d34a1755acd18
treeed7b4cd012965169c5107848a12dc176780d1748
parent305a8ac45f350580957743b3b3aa4c4eca0a6396
Register TransportProtocols using services

Use the Java 6 like services approach to find all supported
TransportProtocols within the CLASSPATH and load them all for use.

This allows users to inject additional protocol implementations simply
by putting their JARs on the application CLASSPATH, provided the
protocol author has written the proper services file.

Change-Id: I7a82d8846e4c4ed012c769f03d4bb2461f1bd148
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportProtocol.java