File tree Expand file tree Collapse file tree
src/main/java/com/github/simple_mocks/localization_service/mutable/api/source Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ jdk_version=21
77author =Simple Mocks
88project_name =api-localization
99group =com.github.simple-mocks
10- version =0.0.2
10+ version =0.0.3
1111
1212# 3rd party libraries
1313lib_lombok_version =1.18.32
Original file line number Diff line number Diff line change 1+ package com .github .simple_mocks .localization_service .mutable .api .source ;
2+
3+ import com .github .simple_mocks .localization_service .api .dto .LocalizationSourceId ;
4+
5+ import java .lang .annotation .*;
6+
7+ /**
8+ * Localization source annotation
9+ *
10+ * @author sibmaks
11+ * @since 0.0.3
12+ */
13+ @ Retention (RetentionPolicy .RUNTIME )
14+ @ Target (ElementType .TYPE )
15+ @ Documented
16+ @ Repeatable (LocalizationJsonSources .class )
17+ public @interface LocalizationJsonSource {
18+
19+ /**
20+ * Localizations source system code
21+ *
22+ * @return system code
23+ */
24+ String systemCode ();
25+
26+ /**
27+ * Localization kind code
28+ *
29+ * @return kind code
30+ */
31+ String kindCode () default LocalizationSourceId .DEFAULT_KIND_CODE ;
32+
33+ /**
34+ * Locale iso3 code
35+ *
36+ * @return iso3 language code
37+ */
38+ String iso3Code ();
39+
40+ /**
41+ * Path to json file
42+ *
43+ * @return path to file
44+ */
45+ String path ();
46+ }
Original file line number Diff line number Diff line change 1+ package com .github .simple_mocks .localization_service .mutable .api .source ;
2+
3+ import java .lang .annotation .*;
4+
5+ /**
6+ * Localization source annotation
7+ *
8+ * @author sibmaks
9+ * @since 0.0.3
10+ */
11+ @ Retention (RetentionPolicy .RUNTIME )
12+ @ Target (ElementType .TYPE )
13+ @ Documented
14+ public @interface LocalizationJsonSources {
15+
16+ /**
17+ * All localization JSON sources
18+ *
19+ * @return localization sources
20+ */
21+ LocalizationJsonSource [] value ();
22+
23+ }
You can’t perform that action at this time.
0 commit comments