Class ServiceIndex

    • Constructor Detail

      • ServiceIndex

        public ServiceIndex()
    • Method Detail

      • getService

        public <S extends Service> S getService​(Class<S> c)
        Gets the first available service compatible with the given class.
      • getNextService

        public <S extends Service> S getNextService​(Class<S> c,
                                                    Class<? extends S> ref)
        Gets the highest priority service compatible with class c, which is lower priority than the ref service.
      • getPrevService

        public <S extends Service> S getPrevService​(Class<S> c,
                                                    Class<? extends S> ref)
        Gets the lowest priority service compatible with class c, which is higher priority than the ref service.