trait ExtensionId[T <: Extension] extends AnyRef
Identifies an Extension Lookup of Extensions is done by object identity, so the Id must be the same wherever it's used, otherwise you'll get the same extension loaded multiple times.
- Source
- Extension.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ExtensionId
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
createExtension(system: ExtendedActorSystem): T
Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.
Concrete Value Members
-
def
apply(system: ActorSystem): T
Returns an instance of the extension identified by this ExtensionId instance.
-
final
def
equals(other: Any): Boolean
- Definition Classes
- ExtensionId → AnyRef → Any
-
def
get(system: ActorSystem): T
Returns an instance of the extension identified by this ExtensionId instance.
Returns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used from Java also, this method should be overridden to get correct return type.
override def get(system: ActorSystem): TheExtension = super.get(system)
-
final
def
hashCode(): Int
- Definition Classes
- ExtensionId → AnyRef → Any