本文整理汇总了Java中ninja.leaping.configurate.objectmapping.GuiceObjectMapperFactory类的典型用法代码示例。如果您正苦于以下问题:Java GuiceObjectMapperFactory类的具体用法?Java GuiceObjectMapperFactory怎么用?Java GuiceObjectMapperFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GuiceObjectMapperFactory类属于ninja.leaping.configurate.objectmapping包,在下文中一共展示了GuiceObjectMapperFactory类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: Phonon
import ninja.leaping.configurate.objectmapping.GuiceObjectMapperFactory; //导入依赖的package包/类
@Inject
public Phonon(Logger logger, @DefaultConfig(sharedRoot = false) ConfigurationLoader<CommentedConfigurationNode> loader,
@ConfigDir(sharedRoot = false) Path configDir, GuiceObjectMapperFactory factory) {
this.logger = logger;
this.loader = loader;
this.configDir = configDir;
this.factory = factory;
this.configs = new HashMap<>();
this.phononCommand = new PhononCommand();
this.phononInjector = Guice.createInjector(new InjectorModule(this, this.phononCommand, new DiscordBot()));
}
开发者ID:NucleusPowered,项目名称:Phonon,代码行数:12,代码来源:Phonon.java
示例2: CatClearLag
import ninja.leaping.configurate.objectmapping.GuiceObjectMapperFactory; //导入依赖的package包/类
@Inject
public CatClearLag(Logger logger, Game game, @ConfigDir(sharedRoot = false) File configDir, GuiceObjectMapperFactory factory) {
this.logger = logger;
this.game = game;
this.configDir = configDir;
this.factory = factory;
instance = this;
}
开发者ID:Time6628,项目名称:CatClearLag,代码行数:9,代码来源:CatClearLag.java
示例3: getFactory
import ninja.leaping.configurate.objectmapping.GuiceObjectMapperFactory; //导入依赖的package包/类
public GuiceObjectMapperFactory getFactory() {
return factory;
}
开发者ID:Time6628,项目名称:CatClearLag,代码行数:4,代码来源:CatClearLag.java
示例4: getMapperFactory
import ninja.leaping.configurate.objectmapping.GuiceObjectMapperFactory; //导入依赖的package包/类
private static ObjectMapperFactory getMapperFactory(PluginContainer container) {
if (container instanceof LanternPluginContainer) {
return ((LanternPluginContainer) container).getInjector().getInstance(GuiceObjectMapperFactory.class);
}
return DefaultObjectMapperFactory.getInstance();
}
开发者ID:LanternPowered,项目名称:LanternServer,代码行数:7,代码来源:LanternConfigManager.java
注:本文中的ninja.leaping.configurate.objectmapping.GuiceObjectMapperFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论