1 package net.sumaris.server.config;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 import net.sumaris.core.config.SumarisConfigurationOption;
28 import net.sumaris.core.config.SumarisCoreConfigurationAction;
29 import org.nuiton.config.ApplicationConfigProvider;
30 import org.nuiton.config.ConfigActionDef;
31 import org.nuiton.config.ConfigOptionDef;
32
33 import java.util.Locale;
34
35 import static org.nuiton.i18n.I18n.l;
36
37
38
39
40
41
42
43 public class SumarisServerConfigurationProvider implements ApplicationConfigProvider {
44
45
46 @Override
47 public String getName() {
48 return "sumaris-server";
49 }
50
51
52 @Override
53 public String getDescription(Locale locale) {
54 return l(locale, "sumaris.server.config");
55 }
56
57
58 @Override
59 public ConfigOptionDef[] getOptions() {
60 return SumarisServerConfigurationOption.values();
61 }
62
63
64 @Override
65 public ConfigActionDef[] getActions() {
66 return new ConfigActionDef[0];
67 }
68 }