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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.xpdustry.distributor.api.service.ServiceManager

    com.xpdustry.distributor.api.service.ServiceManager.Provider<T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> List<com.xpdustry.distributor.api.service.ServiceManager.Provider<T>>
    getProviders(Class<T> service)
     
    <T> void
    register(com.xpdustry.distributor.api.plugin.MindustryPlugin plugin, Class<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

    provide, provideOrDefault, register
  • Constructor Details

    • ServiceManagerImpl

      public ServiceManagerImpl()
  • Method Details

    • register

      public <T> void register(com.xpdustry.distributor.api.plugin.MindustryPlugin plugin, Class<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.ServiceManager.Provider<T>> getProviders(Class<T> service)
      Specified by:
      getProviders in interface com.xpdustry.distributor.api.service.ServiceManager