Skip to content

hw container#124

Open
katyaadamenko wants to merge 8 commits into
tehnotrack:masterfrom
katyaadamenko:katyaadamenko-container
Open

hw container#124
katyaadamenko wants to merge 8 commits into
tehnotrack:masterfrom
katyaadamenko:katyaadamenko-container

Conversation

@katyaadamenko
Copy link
Copy Markdown

No description provided.

String id = new String();
String className = new String();
Map<String, Property> properties = new HashMap<String, Property>();
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Круто! Ради интереса это хорошо, но можно проще

ObjectMapper mapper = new ObjectMapper();
 +        try {
 +            Root root =  mapper.readValue(configFile, Root.class);
 +            return root.getBeans();
 +        } catch (IOException exception) {
 +            throw new InvalidConfigurationException(exception.getMessage());
 +        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants