Revision 224f7da1
Added by Andreas Kohlbecker over 15 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/json/JsonConfigFactoryBean.java | ||
---|---|---|
43 | 43 |
private Map<Class,JsonValueProcessor> jsonValueProcessors = new HashMap<Class,JsonValueProcessor>(); |
44 | 44 |
private JsonBeanProcessorMatcher jsonBeanProcessorMatcher = JsonBeanProcessorMatcher.DEFAULT; |
45 | 45 |
private JsonValueProcessorMatcher jsonValueProcessorMatcher = JsonValueProcessorMatcher.DEFAULT; |
46 |
private boolean ignoreDefaultExcludes = false; |
|
46 | 47 |
private List<String> excludes = new ArrayList<String>(); |
47 | 48 |
|
48 | 49 |
public void setCycleDetectionStrategy(CycleDetectionStrategy cycleDetectionStrategy) { |
... | ... | |
73 | 74 |
this.jsonValueProcessors = jsonValueProcessors; |
74 | 75 |
} |
75 | 76 |
|
77 |
public void setIgnoreDefaultExcludes(boolean ignoreDefaultExcludes) { |
|
78 |
this.ignoreDefaultExcludes = ignoreDefaultExcludes; |
|
79 |
} |
|
80 |
|
|
76 | 81 |
public void setExcludes(List<String> excludes) { |
77 | 82 |
this.excludes = excludes; |
78 | 83 |
} |
... | ... | |
90 | 95 |
|
91 | 96 |
jsonConfig.setExcludes(excludes.toArray(new String[]{})); |
92 | 97 |
|
98 |
jsonConfig.setIgnoreDefaultExcludes(ignoreDefaultExcludes); |
|
99 |
|
|
93 | 100 |
for(Class clazz : jsonBeanProcessors.keySet()) { |
94 | 101 |
jsonConfig.registerJsonBeanProcessor(clazz, jsonBeanProcessors.get(clazz)); |
95 | 102 |
} |
Also available in: Unified diff
new controllers & improved JSON serialization