Uses of Interface
com.ericlam.mc.eld.ServiceCollection
Packages that use ServiceCollection
-
Uses of ServiceCollection in com.ericlam.mc.eld
Methods in com.ericlam.mc.eld that return ServiceCollectionModifier and TypeMethodDescription<T extends Configuration>
ServiceCollectionServiceCollection.addConfiguration(Class<T> config) 新增文件配置<T extends GroupConfiguration>
ServiceCollectionServiceCollection.addGroupConfiguration(Class<T> config) 新增文件池<T extends GroupLangConfiguration>
ServiceCollectionServiceCollection.addMultipleLanguages(Class<T> lang) 新增訊息文件池<T,L extends T>
ServiceCollectionServiceCollection.addService(Class<T> service, Class<L> implementation) 註冊服務, 如果已被註冊,則添加新的實作
使用依賴注入時,請使用Set<[Service]>進行註冊ServiceCollection.addServices(Class<T> service, Map<String, Class<? extends T>> implementations) 註冊含有多重實作方式的服務, 如果先前已有註冊,將直接添加新的實作
使用依賴注入時,請使用Map<String, [Service]>進行註冊ServiceCollection.addSingleton(Class<?> singleton) 註冊單例<T,L extends T>
ServiceCollectionServiceCollection.bindService(Class<T> service, Class<L> implementation) 註冊服務<T,P extends javax.inject.Provider<T>>
ServiceCollectionServiceCollection.bindServiceProvider(Class<T> service, Class<P> provider) 使用 Provider 註冊服務<T extends Overridable,L extends T>
ServiceCollectionServiceCollection.overrideService(Class<T> service, Class<L> implementation) 覆蓋服務Methods in com.ericlam.mc.eld with parameters of type ServiceCollectionModifier and TypeMethodDescriptionvoidELDPlugin.bindServices(ServiceCollection collection) 綁定服務,單例與文件的地方Method parameters in com.ericlam.mc.eld with type arguments of type ServiceCollectionModifier and TypeMethodDescriptionELDependenciAPI.register(ELDPlugin plugin, Consumer<ServiceCollection> injector) 不應手動註冊,而應繼承ELDPlugin取代註冊