Skip to content

Commit

Permalink
Merge pull request #16688 from iterate-ch/bugfix/GH-16683
Browse files Browse the repository at this point in the history
Register AutoServiceLoader in Terminal
  • Loading branch information
dkocher authored Dec 18, 2024
2 parents 8fb5257 + 6ae823e commit f158abd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

using ch.cyberduck.cli;
using ch.cyberduck.core.cryptomator;
using ch.cyberduck.core.serviceloader;
using Ch.Cyberduck.Core;
using Ch.Cyberduck.Core.Diagnostics;
using Ch.Cyberduck.Core.Editor;
Expand Down Expand Up @@ -68,6 +69,8 @@ protected override void setFactories()
{
base.setFactories();

this.setDefault("factory.autoserviceloader.class",
typeof(AppContextServiceLoader).AssemblyQualifiedName);
this.setDefault("factory.locale.class", typeof(DictionaryLocale).AssemblyQualifiedName);
this.setDefault("factory.supportdirectoryfinder.class",
typeof(RoamingSupportDirectoryFinder).AssemblyQualifiedName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

using ch.cyberduck.core.i18n;
using ch.cyberduck.core.preferences;
using ch.cyberduck.core.serviceloader;
using java.security;
using java.util;
using org.apache.commons.lang3;
Expand Down Expand Up @@ -322,6 +323,14 @@ protected override void setDefaults()
}
}

protected override void setFactories()
{
base.setFactories();

this.setDefault("factory.autoserviceloader.class",
typeof(AppContextServiceLoader).AssemblyQualifiedName);
}

private static string TryToMatchLocale(string sysLocale, List appLocales)
{
for (int i = 0; i < appLocales.size(); i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ protected override void setFactories()
{
base.setFactories();

this.setDefault("factory.autoserviceloader.class",
typeof(AppContextServiceLoader).AssemblyQualifiedName);
this.setDefault("factory.supportdirectoryfinder.class",
typeof(RoamingSupportDirectoryFinder).AssemblyQualifiedName);
this.setDefault("factory.localsupportdirectoryfinder.class",
Expand Down

0 comments on commit f158abd

Please sign in to comment.