Class SpawnProtocolTypes

java.lang.Object
me.dmmax.akka.spawn.protocol.guice.SpawnProtocolTypes

public class SpawnProtocolTypes extends Object
Utility class for creating Guice keys for SpawnProtocol and related classes
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> com.google.inject.Key<akka.actor.typed.ActorRef<T>>
    actorRefKey(Class<T> actorType)
    Creates a key for ActorRef of type T.
    static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.SpawnCommandConverter<T>>
    Creates a key for SpawnCommandConverter of type T.
    static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.SpawnProtocol<T>>
    spawnProtocolKey(Class<T> actorType)
    Creates a key for SpawnProtocol of type T.
    static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.guice.SpawnProtocolProvider<T>>
    Creates a key for SpawnProtocolProvider of type T.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 for SpawnProtocol of type T.
      Type Parameters:
      T - - actor type
      Parameters:
      actorType - - actor type class
      Returns:
      - key for SpawnProtocol of type T
    • spawnProtocolProviderKey

      public static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.guice.SpawnProtocolProvider<T>> spawnProtocolProviderKey(Class<T> actorType)
      Creates a key for SpawnProtocolProvider of type T.
      Type Parameters:
      T - - actor type
      Parameters:
      actorType - - actor type class
      Returns:
      - key for SpawnProtocolProvider of type T
    • spawnCommandConverterKey

      public static <T> com.google.inject.Key<me.dmmax.akka.spawn.protocol.SpawnCommandConverter<T>> spawnCommandConverterKey(Class<T> actorType)
      Creates a key for SpawnCommandConverter of type T.
      Type Parameters:
      T - - actor type
      Parameters:
      actorType - - actor type class
      Returns:
      - key for SpawnCommandConverter of type T
    • actorRefKey

      public static <T> com.google.inject.Key<akka.actor.typed.ActorRef<T>> actorRefKey(Class<T> actorType)
      Creates a key for ActorRef of type T.
      Type Parameters:
      T - - actor type
      Parameters:
      actorType - - actor type class
      Returns:
      – key for ActorRef of type T