Revision 75785495
Added by Andreas Müller about 4 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/org/springframework/remoting/httpinvoker/CachingHttpInvokerProxyFactoryBean.java | ||
---|---|---|
32 | 32 |
* for <code>HttpInvokerProxyFactoryBean</code> needs to be set to at least {@link org.apache.log4j.Level#INFO}. Otherwise the duration is |
33 | 33 |
* only reported in case of errors. |
34 | 34 |
* |
35 |
* |
|
36 | 35 |
* @author a.kohlbecker |
37 | 36 |
* @since Feb 4, 2020 |
38 |
* |
|
39 | 37 |
*/ |
40 | 38 |
public class CachingHttpInvokerProxyFactoryBean extends HttpInvokerProxyFactoryBean { |
41 | 39 |
|
42 |
private static final String PROP_KEY_MEASURE_DURATION = "remoting.httpinvoker.measureDuration"; |
|
43 |
|
|
44 | 40 |
private static final Logger logger = Logger.getLogger(CachingHttpInvokerProxyFactoryBean.class); |
45 | 41 |
|
42 |
private static final String PROP_KEY_MEASURE_DURATION = "remoting.httpinvoker.measureDuration"; |
|
43 |
|
|
46 | 44 |
private ICdmEntitySessionManager cdmEntitySessionManager; |
47 | 45 |
|
48 | 46 |
private IRemoteInvocationTermCacher remoteInvocationTermCacher; |
49 | 47 |
|
50 |
protected final static Set<String> persistingMethods = new HashSet<String>();
|
|
48 |
protected final static Set<String> persistingMethods = new HashSet<>(); |
|
51 | 49 |
|
52 | 50 |
protected static boolean measureDuration = false; |
53 | 51 |
|
... | ... | |
167 | 165 |
} |
168 | 166 |
} |
169 | 167 |
|
170 |
/** |
|
171 |
* @return the remoteInvocationTermCacher |
|
172 |
*/ |
|
173 | 168 |
public IRemoteInvocationTermCacher getRemoteInvocationTermCacher() { |
174 | 169 |
return remoteInvocationTermCacher; |
175 | 170 |
} |
176 |
|
|
177 |
/** |
|
178 |
* @param remoteInvocationTermCacher the remoteInvocationTermCacher to set |
|
179 |
*/ |
|
180 | 171 |
public void setRemoteInvocationTermCacher(IRemoteInvocationTermCacher remoteInvocationTermCacher) { |
181 | 172 |
this.remoteInvocationTermCacher = remoteInvocationTermCacher; |
182 | 173 |
} |
Also available in: Unified diff
cleanup