Last change
on this file since 22 was 22, checked in by bart, 4 years ago |
- party capabilities now include profile information. Existing parties may need small fix * plot layout shows accepts * VotingEvaluator use group power instead of group size * runsession you can now also select MOPAC-only parties
|
File size:
553 bytes
|
Rev | Line | |
---|
[22] | 1 | package geniusweb.profilesserver;
|
---|
| 2 |
|
---|
| 3 | import com.fasterxml.jackson.databind.ObjectMapper;
|
---|
| 4 |
|
---|
| 5 | /**
|
---|
| 6 | * A central generator for the object mapper, so that we can extend the
|
---|
| 7 | * objectmapper (with custom classes) centrally. Also allows us to cache the
|
---|
| 8 | * objectmapper.
|
---|
| 9 | *
|
---|
| 10 | * <b> This class should is private to the profiles server and should not be
|
---|
| 11 | * used by others.</b>
|
---|
| 12 | */
|
---|
| 13 | public class Jackson {
|
---|
| 14 | private static ObjectMapper jackson;
|
---|
| 15 |
|
---|
| 16 | public static ObjectMapper instance() {
|
---|
| 17 | if (jackson == null) {
|
---|
| 18 | jackson = new ObjectMapper();
|
---|
| 19 | }
|
---|
| 20 | return jackson;
|
---|
| 21 | }
|
---|
| 22 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.