| Total Complexity | 1 |
| Total Lines | 8 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.hltech.vaunt.generator.domain.representation; |
||
| 11 | @RequiredArgsConstructor |
||
| 12 | public class RepresentationWriter { |
||
| 13 | |||
| 14 | private final ObjectMapper mapper; |
||
| 15 | |||
| 16 | public void writeServiceRepresentation(Service service, String targetDirectory) throws IOException { |
||
| 17 | File targetFile = Paths.get(targetDirectory).resolve(service.getName().concat(".json")).toFile(); |
||
| 18 | mapper.writeValue(targetFile, service); |
||
| 19 | } |
||
| 21 |