/**\r
* CDM Application Configuration class which manages the configuration for remoting\r
* clients\r
- *\r
*/\r
@Component\r
// TODO split into CdmRepository and proper @Configuration class\r
public class CdmApplicationRemoteConfiguration implements ICdmRepository, ApplicationContextAware {\r
\r
+ @SuppressWarnings("unused")\r
+ private static final Logger logger = Logger.getLogger(CdmApplicationRemoteConfiguration.class);\r
+\r
/**\r
* Timeout for service lookup etc. This timeout (milliseconds) should me more\r
* strict than {@link #HTTP_READ_TIMEOUT} to avoid connecting to\r
*/\r
public static final int HTTP_READ_TIMEOUT = 70000;\r
\r
- @SuppressWarnings("unused")\r
- private static final Logger logger = Logger.getLogger(CdmApplicationRemoteConfiguration.class);\r
\r
protected ApplicationContext applicationContext;\r
\r
this.applicationContext = applicationContext;\r
}\r
\r
- /* (non-Javadoc)\r
- * @see eu.etaxonomy.cdm.api.application.CdmApplicationDefaultConfiguration#getTransactionManager()\r
- */\r
@Override\r
public PlatformTransactionManager getTransactionManager() throws UnsupportedOperationException {\r
throw new UnsupportedOperationException("getTransactionManager is not implemented for CdmApplicationRemoteConfiguration");\r
}\r
\r
-\r
-\r
- /**\r
- * @return\r
- */\r
public IEditGeoService getEditGeoService() {\r
return (IEditGeoService) getService(IEditGeoService.class, "/remoting/editgeo.service", new AuthenticatingHttpInvokerRequestExecutor());\r
}\r
\r
- /**\r
- * @return\r
- */\r
public ICachedCommonService getCachedCommonService(){\r
if(cachedCommonService == null) {\r
cachedCommonService = new CachedCommonServiceImpl();\r
return cachedCommonService;\r
}\r
\r
-\r
public ICdmEntitySessionManager getCdmEntitySessionManager() {\r
if(cdmEntitySessionManager == null) {\r
cdmEntitySessionManager = new CdmEntitySessionManager();\r
return cdmEntitySessionManager;\r
}\r
\r
-\r
-\r
-\r
-\r
-\r
// ****************************** GETTER *************************************************/\r
\r
@Override\r
* for <code>HttpInvokerProxyFactoryBean</code> needs to be set to at least {@link org.apache.log4j.Level#INFO}. Otherwise the duration is
* only reported in case of errors.
*
- *
* @author a.kohlbecker
* @since Feb 4, 2020
- *
*/
public class CachingHttpInvokerProxyFactoryBean extends HttpInvokerProxyFactoryBean {
- private static final String PROP_KEY_MEASURE_DURATION = "remoting.httpinvoker.measureDuration";
-
private static final Logger logger = Logger.getLogger(CachingHttpInvokerProxyFactoryBean.class);
+ private static final String PROP_KEY_MEASURE_DURATION = "remoting.httpinvoker.measureDuration";
+
private ICdmEntitySessionManager cdmEntitySessionManager;
private IRemoteInvocationTermCacher remoteInvocationTermCacher;
- protected final static Set<String> persistingMethods = new HashSet<String>();
+ protected final static Set<String> persistingMethods = new HashSet<>();
protected static boolean measureDuration = false;
}
}
- /**
- * @return the remoteInvocationTermCacher
- */
public IRemoteInvocationTermCacher getRemoteInvocationTermCacher() {
return remoteInvocationTermCacher;
}
-
- /**
- * @param remoteInvocationTermCacher the remoteInvocationTermCacher to set
- */
public void setRemoteInvocationTermCacher(IRemoteInvocationTermCacher remoteInvocationTermCacher) {
this.remoteInvocationTermCacher = remoteInvocationTermCacher;
}