1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package de.smartics.properties.impl.config.domain.key.rtaware;
17
18 import de.smartics.properties.api.config.domain.key.ConfigurationKeyFactory;
19 import de.smartics.properties.api.config.domain.key.ConfigurationKeyHelper;
20 import de.smartics.properties.api.config.domain.key.KeyListBuilder;
21 import de.smartics.properties.spi.config.definition.DefinitionConfigParser;
22 import de.smartics.properties.spi.config.definition.DefinitionKeyHelper;
23 import de.smartics.properties.spi.config.definition.PropertiesDefinitionContext;
24 import de.smartics.properties.spi.config.domain.key.ConfigurationKeyContext;
25
26
27
28
29 public final class TenantUserConfigurationKeyContext implements
30 ConfigurationKeyContext
31 {
32
33
34
35
36
37
38
39
40
41 private final TenantUserConfigurationKeyFactory factory =
42 new TenantUserConfigurationKeyFactory();
43
44
45
46
47
48 private final TenantUserKeyListBuilder builder =
49 new TenantUserKeyListBuilder();
50
51
52
53
54 private final TenantUserDefinitionConfigParser parser =
55 new TenantUserDefinitionConfigParser();
56
57
58
59
60 private final TenantUserDefinitionKeyHelper defaultHelper =
61 new TenantUserDefinitionKeyHelper();
62
63
64
65
66
67
68
69
70 public TenantUserConfigurationKeyContext()
71 {
72 }
73
74
75
76
77
78
79
80
81
82
83
84 @Override
85 public ConfigurationKeyFactory<?> configurationKeyFactory()
86 {
87 return factory;
88 }
89
90 @Override
91 public KeyListBuilder keyListBuilder()
92 {
93 return builder;
94 }
95
96 @Override
97 public DefinitionConfigParser<?> definitionConfigParser()
98 {
99 return parser;
100 }
101
102 @Override
103 public DefinitionKeyHelper definitionKeyHelper()
104 {
105 return defaultHelper;
106 }
107
108 @Override
109 public DefinitionKeyHelper definitionKeyHelper(
110 final PropertiesDefinitionContext definitionContext)
111 {
112 return new TenantUserDefinitionKeyHelper(
113 (TenantUserPropertiesDefinitionContext) definitionContext);
114 }
115
116 @Override
117 public ConfigurationKeyHelper configurationKeyHelper(
118 final boolean preferEarManifest)
119 {
120 final TenantUserConfigurationKeyHelper configurationKeyHelper =
121 new TenantUserConfigurationKeyHelper(preferEarManifest);
122 return configurationKeyHelper;
123 }
124
125
126
127 }