Class ServiceManagerImpl

java.lang.Object
com.xpdustry.distributor.common.service.ServiceManagerImpl
All Implemented Interfaces:
com.xpdustry.distributor.api.service.ServiceManager

public final class ServiceManagerImpl extends Object implements com.xpdustry.distributor.api.service.ServiceManager
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> List<com.xpdustry.distributor.api.service.ServiceProvider<T>>
    getProviders(com.xpdustry.distributor.api.util.TypeToken<T> service)
     
    <T> void
    register(com.xpdustry.distributor.api.plugin.MindustryPlugin plugin, com.xpdustry.distributor.api.util.TypeToken<T> service, T instance, com.xpdustry.distributor.api.util.Priority priority)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.xpdustry.distributor.api.service.ServiceManager

    getProviders, provide, provide, register
  • Constructor Details

    • ServiceManagerImpl

      public ServiceManagerImpl()
  • Method Details

    • register

      public <T> void register(com.xpdustry.distributor.api.plugin.MindustryPlugin plugin, com.xpdustry.distributor.api.util.TypeToken<T> service, T instance, com.xpdustry.distributor.api.util.Priority priority)
      Specified by:
      register in interface com.xpdustry.distributor.api.service.ServiceManager
    • getProviders

      public <T> List<com.xpdustry.distributor.api.service.ServiceProvider<T>> getProviders(com.xpdustry.distributor.api.util.TypeToken<T> service)
      Specified by:
      getProviders in interface com.xpdustry.distributor.api.service.ServiceManager