play.libs.Scala.asArray()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(185)

本文整理了Java中play.libs.Scala.asArray()方法的一些代码示例,展示了Scala.asArray()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Scala.asArray()方法的具体详情如下:
包路径:play.libs.Scala
类名称:Scala
方法名:asArray

Scala.asArray介绍

[英]Converts a Scala List to an Array.
[中]将Scala列表转换为数组。

代码示例

代码示例来源:origin: com.typesafe.play/play-guice_2.11

/**
 * Identify some bindings that should be used as overrides when loading an application using this context. The default
 * implementation of this method provides bindings that most applications should include.
 *
 * @param context the context that should be searched for overrides
 * @return the bindings that should be used to override
 */
protected GuiceableModule[] overrides(ApplicationLoader.Context context) {
  scala.collection.Seq<GuiceableModule> seq = play.api.inject.guice.GuiceApplicationLoader$.MODULE$.defaultOverrides(context.asScala());
  return Scala.asArray(GuiceableModule.class, seq);
}

代码示例来源:origin: com.typesafe.play/play-java_2.10

/**
 * Override some bindings using information from the context. The default
 * implementation of this method provides bindings that most applications
 * should include.
 */
protected GuiceableModule[] overrides(ApplicationLoader.Context context) {
  scala.collection.Seq<GuiceableModule> seq = play.api.inject.guice.GuiceApplicationLoader$.MODULE$.defaultOverrides(context.underlying());
  return Scala.asArray(GuiceableModule.class, seq);
}

代码示例来源:origin: com.typesafe.play/play-guice_2.12

/**
 * Identify some bindings that should be used as overrides when loading an application using this context. The default
 * implementation of this method provides bindings that most applications should include.
 *
 * @param context the context that should be searched for overrides
 * @return the bindings that should be used to override
 */
protected GuiceableModule[] overrides(ApplicationLoader.Context context) {
  scala.collection.Seq<GuiceableModule> seq = play.api.inject.guice.GuiceApplicationLoader$.MODULE$.defaultOverrides(context.asScala());
  return Scala.asArray(GuiceableModule.class, seq);
}

相关文章