org.codejargon.feather.Feather Java Examples
The following examples show how to use
org.codejargon.feather.Feather.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultModuleManager.java From kyoko with MIT License | 5 votes |
public DefaultModuleManager(CommandManager commandManager, Feather feather, I18n i18n) { this.commandManager = commandManager; this.feather = feather; this.i18n = i18n; visitors = new HashSet<>(); moduleDataSet = new HashSet<>(); classLoader = new ModuleClassLoader(this); visitors.add(new AnnotationWalker(this)); }
Example #2
Source File: DefaultCommandManager.java From kyoko with MIT License | 5 votes |
@Inject public DefaultCommandManager(Catnip catnip, CommandContextFactory contextFactory, Feather feather) { this.contextFactory = contextFactory; this.feather = feather; this.registered = new HashSet<>(); this.filters = new HashMap<>(); this.commands = new HashMap<>(); this.commandFilters = new ArrayList<>(); catnip.on(DiscordEvent.MESSAGE_CREATE, this::handleMessage); catnip.on(DiscordEvent.MESSAGE_CREATE, this::handleOwnerMessage); }
Example #3
Source File: FeatherVerticleFactory.java From kyoko with MIT License | 4 votes |
public FeatherVerticleFactory(Feather injector) { this.injector = Objects.requireNonNull(injector); }
Example #4
Source File: FeatureFilterImpl.java From kyoko with MIT License | 4 votes |
FeatureFilterImpl(CommandManager commandManager, Feather feather, String featureId) { this.commandManager = commandManager; this.feather = feather; this.commands = new ArrayList<>(); this.featureId = featureId; }
Example #5
Source File: MainModule.java From kyoko with MIT License | 4 votes |
@Singleton @Provides CommandManager commandManager(Catnip catnip, CommandContextFactory contextFactory, Feather feather) { return new DefaultCommandManager(catnip, contextFactory, feather); }
Example #6
Source File: MainModule.java From kyoko with MIT License | 4 votes |
@Singleton @Provides ModuleManager moduleManager(CommandManager commandManager, Feather feather, I18n i18n) { return new DefaultModuleManager(commandManager, feather, i18n); }
Example #7
Source File: Module.java From kyoko with MIT License | 4 votes |
@Inject public Module(Feather feather) { this.feather = feather; }
Example #8
Source File: Module.java From kyoko with MIT License | 4 votes |
@Inject public Module(CommandManager commandManager, Feather feather) { this.commandManager = commandManager; this.feather = feather; }
Example #9
Source File: FeatherInjectionProvider.java From rest.vertx with Apache License 2.0 | 4 votes |
public FeatherInjectionProvider() { injector = Feather.with(new FeatherModule()); }
Example #10
Source File: DIFactory.java From di-benchmark with MIT License | 4 votes |
public static Feather feather() { return Feather.with(); }