|
44 | 44 |
|
45 | 45 | @Service
|
46 | 46 | @RequiredArgsConstructor
|
47 |
| -abstract class InfoService { |
| 47 | +public abstract class InfoService { |
48 | 48 |
|
49 | 49 | private final InfoTypes type;
|
50 | 50 | private final InfoRepository infoRepository;
|
@@ -119,60 +119,45 @@ private List<Info> findInfo(@NonNull Set<String> ids) {
|
119 | 119 | val searchRequest = ids.stream().map(this::buildPK).collect(toList());
|
120 | 120 | return infoRepository.findAllByInfoPKIn(searchRequest);
|
121 | 121 | }
|
122 |
| -} |
123 | 122 |
|
124 |
| -@Service |
125 |
| -class StudyInfoService extends InfoService { |
126 |
| - @Autowired |
127 |
| - StudyInfoService(InfoRepository repo) { |
128 |
| - super(InfoTypes.STUDY, repo); |
| 123 | + @Service |
| 124 | + public static class StudyInfoService extends InfoService { |
| 125 | + @Autowired |
| 126 | + StudyInfoService(InfoRepository repo) { |
| 127 | + super(InfoTypes.STUDY, repo); |
| 128 | + } |
129 | 129 | }
|
130 |
| -} |
131 | 130 |
|
132 |
| -@Service |
133 |
| -class DonorInfoService extends InfoService { |
134 |
| - @Autowired |
135 |
| - DonorInfoService(InfoRepository repo) { |
136 |
| - super(InfoTypes.DONOR, repo); |
| 131 | + @Service |
| 132 | + public static class DonorInfoService extends InfoService { |
| 133 | + @Autowired |
| 134 | + DonorInfoService(InfoRepository repo) { |
| 135 | + super(InfoTypes.DONOR, repo); |
| 136 | + } |
137 | 137 | }
|
138 |
| -} |
139 | 138 |
|
140 |
| -@Service |
141 |
| -class SpecimenInfoService extends InfoService { |
142 |
| - @Autowired |
143 |
| - SpecimenInfoService(InfoRepository repo) { |
144 |
| - super(InfoTypes.SPECIMEN, repo); |
| 139 | + @Service |
| 140 | + public static class SpecimenInfoService extends InfoService { |
| 141 | + @Autowired |
| 142 | + SpecimenInfoService(InfoRepository repo) { |
| 143 | + super(InfoTypes.SPECIMEN, repo); |
| 144 | + } |
145 | 145 | }
|
146 |
| -} |
147 | 146 |
|
148 |
| -@Service |
149 |
| -class SampleInfoService extends InfoService { |
150 |
| - @Autowired |
151 |
| - SampleInfoService(InfoRepository repo) { |
152 |
| - super(InfoTypes.SAMPLE, repo); |
| 147 | + @Service |
| 148 | + public static class SampleInfoService extends InfoService { |
| 149 | + @Autowired |
| 150 | + SampleInfoService(InfoRepository repo) { |
| 151 | + super(InfoTypes.SAMPLE, repo); |
| 152 | + } |
153 | 153 | }
|
154 |
| -} |
155 | 154 |
|
156 |
| -@Service |
157 |
| -class FileInfoService extends InfoService { |
158 |
| - @Autowired |
159 |
| - FileInfoService(InfoRepository repo) { |
160 |
| - super(InfoTypes.FILE, repo); |
161 |
| - } |
162 |
| -} |
163 |
| - |
164 |
| -@Service |
165 |
| -class VariantCallInfoService extends InfoService { |
166 |
| - @Autowired |
167 |
| - VariantCallInfoService(InfoRepository repo) { |
168 |
| - super(InfoTypes.VARIANT_CALL, repo); |
| 155 | + @Service |
| 156 | + public static class FileInfoService extends InfoService { |
| 157 | + @Autowired |
| 158 | + FileInfoService(InfoRepository repo) { |
| 159 | + super(InfoTypes.FILE, repo); |
| 160 | + } |
169 | 161 | }
|
170 |
| -} |
171 | 162 |
|
172 |
| -@Service |
173 |
| -class SequencingReadInfoService extends InfoService { |
174 |
| - @Autowired |
175 |
| - SequencingReadInfoService(InfoRepository repo) { |
176 |
| - super(SEQUENCING_READ, repo); |
177 |
| - } |
178 | 163 | }
|
0 commit comments