DOC: Added note about override of get in ExtensionId
This commit is contained in:
parent
ef80eb1ccd
commit
d1b3444337
1 changed files with 6 additions and 0 deletions
|
|
@ -38,6 +38,12 @@ trait ExtensionId[T <: Extension] {
|
|||
/**
|
||||
* Returns an instance of the extension identified by this ExtensionId instance.
|
||||
* Java API
|
||||
* For extensions written in Scala that are to be used used from Java also,
|
||||
* this method should be overridden to get correct return type.
|
||||
* {{{
|
||||
* override def get(system: ActorSystem): TheExtension = super.get(system)
|
||||
* }}}
|
||||
*
|
||||
*/
|
||||
def get(system: ActorSystem): T = apply(system)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue