Class SpawnProtocolTypes
java.lang.Object
me.dmmax.akka.spawn.protocol.guice.SpawnProtocolTypes
Utility class for creating Guice keys for
SpawnProtocol and related classes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.google.inject.Key<akka.actor.typed.ActorRef<T>>actorRefKey(Class<T> actorType) Creates a key forActorRefof typeT.static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.SpawnCommandConverter<T>>spawnCommandConverterKey(Class<T> actorType) Creates a key forSpawnCommandConverterof typeT.static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.SpawnProtocol<T>>spawnProtocolKey(Class<T> actorType) Creates a key forSpawnProtocolof typeT.static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.guice.SpawnProtocolProvider<T>>spawnProtocolProviderKey(Class<T> actorType) Creates a key forSpawnProtocolProviderof typeT.
-
Constructor Details
-
SpawnProtocolTypes
public SpawnProtocolTypes()
-
-
Method Details
-
spawnProtocolKey
public static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.SpawnProtocol<T>> spawnProtocolKey(Class<T> actorType) Creates a key forSpawnProtocolof typeT.- Type Parameters:
T- - actor type- Parameters:
actorType- - actor type class- Returns:
- - key for
SpawnProtocolof typeT
-
spawnProtocolProviderKey
public static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.guice.SpawnProtocolProvider<T>> spawnProtocolProviderKey(Class<T> actorType) Creates a key forSpawnProtocolProviderof typeT.- Type Parameters:
T- - actor type- Parameters:
actorType- - actor type class- Returns:
- - key for
SpawnProtocolProviderof typeT
-
spawnCommandConverterKey
public static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.SpawnCommandConverter<T>> spawnCommandConverterKey(Class<T> actorType) Creates a key forSpawnCommandConverterof typeT.- Type Parameters:
T- - actor type- Parameters:
actorType- - actor type class- Returns:
- - key for
SpawnCommandConverterof typeT
-
actorRefKey
public static <T> com.google.inject.Key<akka.actor.typed.ActorRef<T>> actorRefKey(Class<T> actorType) Creates a key forActorRefof typeT.- Type Parameters:
T- - actor type- Parameters:
actorType- - actor type class- Returns:
- – key for
ActorRefof typeT
-