From 989e8749c628270af9f2908d0b540297c9e86765 Mon Sep 17 00:00:00 2001 From: Andreas Kohlbecker Date: Tue, 8 Mar 2011 13:37:26 +0000 Subject: [PATCH] explaining the deprecation of this class --- .../cdm/database/UpdatableRoutingDataSource.java | 8 ++++++++ .../interceptor/DatasourceContextHandlerInterceptor.java | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/UpdatableRoutingDataSource.java b/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/UpdatableRoutingDataSource.java index 1d60e03674..388703b993 100644 --- a/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/UpdatableRoutingDataSource.java +++ b/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/UpdatableRoutingDataSource.java @@ -40,6 +40,14 @@ import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; * * @author a.kohlbecker + * @deprecatedNOTICE: + * This class is related to the switchable database infrastructure which allows to serve + * multiple databases with only a single instance of the cdm-remote-webapp. + * This concept however is deprecated due to several problems of which the most severe is the term loading issue. + * This class should however not deleted since we once might wish to switch back to this concept when we are + * able to deal with the implicated issues. + * + * See http://dev.e-taxonomy.eu/trac/wiki/CdmServerSwitchableDataSources for more information. */ @Deprecated public class UpdatableRoutingDataSource extends AbstractRoutingDataSource { diff --git a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/interceptor/DatasourceContextHandlerInterceptor.java b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/interceptor/DatasourceContextHandlerInterceptor.java index ef4c6f35c5..39c281a2ac 100644 --- a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/interceptor/DatasourceContextHandlerInterceptor.java +++ b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/interceptor/DatasourceContextHandlerInterceptor.java @@ -28,7 +28,9 @@ import eu.etaxonomy.cdm.database.NamedContextHolder; * multiple databases with only a single instance of the cdm-remote-webapp. * This concept however is deprecated due to several problems of which the most severe is the term loading issue. * This class should however not deleted since we once might wish to switch back to this concept when we are - * able to deal with the implicated issues. + * able to deal with the implicated issues. + * + * See http://dev.e-taxonomy.eu/trac/wiki/CdmServerSwitchableDataSources for more information. */ @Deprecated public class DatasourceContextHandlerInterceptor extends HandlerInterceptorAdapter { -- 2.34.1