Class ServiceKey$


  • public class ServiceKey$
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ServiceKey$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceKey$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> ServiceKey<T> apply​(java.lang.String id, scala.reflect.ClassTag<T> classTag)
      Scala API: Creates a service key.
      <T> ServiceKey<T> create​(java.lang.Class<T> clazz, java.lang.String id)
      Java API: Creates a service key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final ServiceKey$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • ServiceKey$

        public ServiceKey$()
    • Method Detail

      • apply

        public <T> ServiceKey<T> apply​(java.lang.String id,
                                       scala.reflect.ClassTag<T> classTag)
        Scala API: Creates a service key. The given ID should uniquely define a service with a given protocol.
      • create

        public <T> ServiceKey<T> create​(java.lang.Class<T> clazz,
                                        java.lang.String id)
        Java API: Creates a service key. The given ID should uniquely define a service with a given protocol.