]> source.dussan.org Git - jgit.git/commit
Use ServiceLoader to define the default SSH session factory. 82/155782/3
authorEmmanuel Hugonnet <ehugonne@redhat.com>
Mon, 13 Jan 2020 14:45:55 +0000 (15:45 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 25 Jan 2020 14:58:47 +0000 (15:58 +0100)
commit54b1c7cc6a2ba6031b97d8a5c455d93ffd4ce5f5
tree1027d69566f972c2aa68bbc8185ca3a45103be3a
parent8fa3594565d43c81d5e1a34660b29a861b81d43a
Use ServiceLoader to define the default SSH session factory.

Use ServiceLoader and define
org.eclipse.jgit.transport.DefaultSshSessionFactory in
META-INF/services/org.eclipse.jgit.transport.SshSessionFactory so that
the legacy behavior is still the same.

Bug: 553625
Change-Id: Id1a65506140d921ed76d83699e3817f0d2ca08ed
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/resources/META-INF/services/org.eclipse.jgit.transport.SshSessionFactory [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/DefaultSshSessionFactory.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/SshSessionFactory.java