English 中文(简体)
如何使用Ostrich
原标题:How to use Ostrich

我的任务是收集和报告我申请的一些临时统计数字。 Ostrich在安普森和特辑中都非常友好。 但是,我无法找到任何文件,说明大多数已宣布的特征。 尤其难以在不了解组合原则的情况下,通过网络接口整理报告。

因此,我的主要问题是,除了

如果没有,人们可以举出以下特征的例子(所有这些特征都来自README的顶端):

或者(效果)对奥斯特里希的配置进行良好的建筑审查,以便我能够找到某种办法,亲自进行配置。

问题回答

Ostrich config 案卷只是固定的Scala级,因此,如果你想要装上一个班子的资源,你可能会在法典中制造一个神学院。

Here is how I load default config if -f command-line arg is not specified:

val runtime = RuntimeEnvironment(this, args)
val server =
  if (runtime.configFile.exists) {
    runtime.loadRuntimeConfig[Server]()
  } else {
    (new RPCServerConfig)()(runtime)
  }

Note that you have to - create config instance - then call it s apply() method - then apply(runtime) on the result

You can easily extend this to load different configs depending by e.g. lift s Props.mode





相关问题
Possible to sandbox Python configuration file?

I m thinking of implementing a configuration file written in Python syntax, not unlike what Django does. While I ve seen one or two SO questions about the merits of using executable code in ...

How to validate Java logging properties files?

I have a basic facility for allowing users to remotely apply changes to the logging files in my application. Some logs are configured using java.util.logging properties files, and some are configured ...

Where should I put this configuration setting?

I m designing a fairly small web application which will run on a Sun application server (v9.1). It only has a few pages, no database of its own, and will retrieve/update data via web services. There s ...

.Net application configuration add xml-data

I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection? Is it possible to add the xml ...

Dependency bundle (jar-files/sources/API docs) in Eclipse

I m developing various in-house extensions for JIRA, the issue tracker we use. So far I worked with Netbeans and everything worked like a charm. However, now I need to switch to Eclipse and I m ...

热门标签