Java (Eclipse) compatibility of extensions, see #3469

* Eclipse JDT showed compilation error
  "The method get(ActorSystem) is ambiguous for the type..."
  for extensions defined with ExtensionKey
This commit is contained in:
Patrik Nordwall 2013-06-24 20:27:12 +02:00
parent 32a37ac96a
commit 9b3be181cf
11 changed files with 107 additions and 11 deletions

View file

@ -35,6 +35,8 @@ public class ExtensionDocTest {
//This will be the identifier of our CountExtension
public final static CountExtension CountExtensionProvider = new CountExtension();
private CountExtension() {}
//The lookup method is required by ExtensionIdProvider,
// so we return ourselves here, this allows us
// to configure our extension to be loaded when

View file

@ -44,6 +44,8 @@ public class SettingsExtensionDocTest {
implements ExtensionIdProvider {
public final static Settings SettingsProvider = new Settings();
private Settings() {}
public Settings lookup() {
return Settings.SettingsProvider;
}