diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /config_test/src/main |
Publish
Diffstat (limited to 'config_test/src/main')
-rw-r--r-- | config_test/src/main/java/com/yahoo/configtest/Demo.java | 14 | ||||
-rw-r--r-- | config_test/src/main/resources/configdefinitions/greeting.def | 11 |
2 files changed, 25 insertions, 0 deletions
diff --git a/config_test/src/main/java/com/yahoo/configtest/Demo.java b/config_test/src/main/java/com/yahoo/configtest/Demo.java new file mode 100644 index 00000000000..44b42c79de3 --- /dev/null +++ b/config_test/src/main/java/com/yahoo/configtest/Demo.java @@ -0,0 +1,14 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.configtest; + +/** + * Just check we manage to compile something that requires configuration and + * has no dependencies to Vespa. + */ +public class Demo { + public final String greeting; + + public Demo(GreetingConfig config) { + greeting = config.greeting(); + } +} diff --git a/config_test/src/main/resources/configdefinitions/greeting.def b/config_test/src/main/resources/configdefinitions/greeting.def new file mode 100644 index 00000000000..7755413e8f7 --- /dev/null +++ b/config_test/src/main/resources/configdefinitions/greeting.def @@ -0,0 +1,11 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +version=1 +namespace=configtest + +greeting string default="Hello, world." +arbitrary double + +values[].marker int +values[].operations[].type enum { NALLE, BAMSE, BRAKAR } +values[].operations[].arguments[].key string +values[].operations[].arguments[].value string |