1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package test.de.smartics.properties.spi.config.support;
17
18 import java.io.Serializable;
19
20 import de.smartics.properties.api.config.domain.ConfigurationValidationException;
21 import de.smartics.properties.api.config.domain.Property;
22 import de.smartics.properties.api.config.domain.ResolvedProperty;
23 import de.smartics.properties.api.config.domain.SerializableConfigurationProperties;
24 import de.smartics.properties.api.config.domain.UnknownPropertyException;
25 import de.smartics.properties.api.config.domain.key.ConfigurationKey;
26 import de.smartics.properties.api.core.domain.PropertyDescriptor;
27 import de.smartics.properties.api.core.domain.PropertyDescriptorRegistry;
28 import de.smartics.properties.api.core.domain.PropertyValidationException;
29 import de.smartics.properties.spi.config.support.AbstractConfigurationProperties;
30 import de.smartics.util.lang.NullArgumentException;
31
32
33
34
35 public class DummyConfigurationProperties extends
36 AbstractConfigurationProperties implements Serializable,
37 SerializableConfigurationProperties
38 {
39
40
41
42
43
44
45
46 private static final long serialVersionUID = 1L;
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 public DummyConfigurationProperties(final ConfigurationKey key,
63 final PropertyDescriptorRegistry registry) throws NullArgumentException
64 {
65 super(key, registry);
66 }
67
68
69
70
71
72
73
74
75
76
77
78 @Override
79 public ResolvedProperty getResolvedProperty(
80 final PropertyDescriptor descriptor, final Object defaultValue)
81 throws IllegalArgumentException, UnknownPropertyException,
82 PropertyValidationException
83 {
84 return null;
85 }
86
87 @Override
88 public void validate(final boolean lenient)
89 throws ConfigurationValidationException
90 {
91 }
92
93 @Override
94 public SerializableConfigurationProperties toSerializable()
95 {
96 return this;
97 }
98
99 @Override
100 public Property getProperty(final PropertyDescriptor descriptor,
101 final Object defaultValue) throws NullPointerException,
102 UnknownPropertyException
103 {
104 return null;
105 }
106
107
108
109 }