Module org.eclipse.jgit.ssh.apache
Class ConnectorFactoryProvider
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.agent.ConnectorFactoryProvider
Provides a
ConnectorFactory obtained via the ServiceLoader.-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectorFactoryRetrieves the currently set defaultConnectorFactory.static voidsetDefaultFactory(ConnectorFactory factory) Sets the defaultConnectorFactory.
-
Method Details
-
getDefaultFactory
Retrieves the currently set defaultConnectorFactory.- Returns:
- the
ConnectorFactory, ornullif none.
-
setDefaultFactory
Sets the defaultConnectorFactory.- Parameters:
factory-ConnectorFactoryto use, ornullto use the factory discovered via theServiceLoader.
-