From 72231250ed81e10d66bfe70701e64fa5fe50f712 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Wed, 15 Jun 2016 23:09:44 +0200 Subject: Publish --- config_test/src/main/java/com/yahoo/configtest/Demo.java | 14 ++++++++++++++ .../src/main/resources/configdefinitions/greeting.def | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 config_test/src/main/java/com/yahoo/configtest/Demo.java create mode 100644 config_test/src/main/resources/configdefinitions/greeting.def (limited to 'config_test/src/main') 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 -- cgit v1.2.3