akka.actor
Interface ExtensionId<T extends Extension>

All Known Implementing Classes:
AbstractExtensionId, ActorDSL.Extension$, AddressUidExtension$, CamelExtension, CamelExtension$, Cluster$, ClusterReceptionistExtension$, DistributedPubSubExtension$, ExtensionKey, IOManager$, PeekMailboxExtension$, SerializationExtension, SerializationExtension$, Tcp, Tcp$, TestConductor, TestConductor$, TestKitExtension, TestKitExtension$, TransactorExtension, TransactorExtension$, TransportAdaptersExtension, TransportAdaptersExtension$, TypedActor, TypedActor$, Udp, Udp$, UdpConnected, UdpConnected$, ZeroMQExtension$

public interface ExtensionId<T extends Extension>

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.


Method Summary
 T apply(ActorSystem system)
          Returns an instance of the extension identified by this ExtensionId instance.
 T createExtension(ExtendedActorSystem system)
          Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.
 boolean equals(java.lang.Object other)
           
 T get(ActorSystem system)
          Returns an instance of the extension identified by this ExtensionId instance.
 int hashCode()
           
 

Method Detail

apply

T apply(ActorSystem system)
Returns an instance of the extension identified by this ExtensionId instance.


get

T get(ActorSystem system)
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)
 


createExtension

T createExtension(ExtendedActorSystem system)
Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.


hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object