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

@ -4,6 +4,7 @@
package docs.extension
//#imports
import akka.actor.ActorSystem
import akka.actor.Extension
import akka.actor.ExtensionId
import akka.actor.ExtensionIdProvider
@ -33,6 +34,11 @@ object Settings extends ExtensionId[SettingsImpl] with ExtensionIdProvider {
override def createExtension(system: ExtendedActorSystem) =
new SettingsImpl(system.settings.config)
/**
* Java API: retrieve the Settings extension for the given system.
*/
override def get(system: ActorSystem): SettingsImpl = super.get(system)
}
//#extensionid