
com.freya02.botcommands.api.InstanceSupplier Maven / Gradle / Ivy
package com.freya02.botcommands.api;
import com.freya02.botcommands.api.core.config.BServiceConfigBuilder;
import org.jetbrains.annotations.NotNull;
/**
* Functional interface where you supply an instance of the given class type (your command)
*
* @param Type of the class to instantiate
*
* @see BServiceConfigBuilder#registerInstanceSupplier(Class, InstanceSupplier)
*/
public interface InstanceSupplier {
@NotNull
T supply(@NotNull BContext context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy