ppamorim

Untitled

Mar 16th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. public class StaticUtils {
  2.  
  3.   public enum JsonMapperEnum {
  4.     INSTANCE;
  5.     private final JsonMapper jsonMapper = new JsonMapper();
  6.     public JsonMapper getJsonMapperInstance() {
  7.       return jsonMapper;
  8.     }
  9.   }
  10. }
  11.  
  12. At the another side:
  13.  
  14. StaticUtils.JsonMapperEnum.INSTANCE.getJsonMapperInstance().readTree(result);
Advertisement
Add Comment
Please, Sign In to add comment