src/main/kotlin/de/uapcore/lightpit/DataSourceProvider.kt

changeset 184
e8eecee6aadf
parent 180
009700915269
child 247
e71ae69c68c0
--- a/src/main/kotlin/de/uapcore/lightpit/DataSourceProvider.kt	Sat Jan 23 14:47:59 2021 +0100
+++ b/src/main/kotlin/de/uapcore/lightpit/DataSourceProvider.kt	Fri Apr 02 11:59:14 2021 +0200
@@ -61,12 +61,12 @@
         /**
          * The attribute name in the Servlet context under which an instance of this class can be found.
          */
-        val SC_ATTR_NAME = "lightpit.service.DataSourceProvider"
+        const val SC_ATTR_NAME = "lightpit.service.DataSourceProvider"
 
         /**
          * Timeout in seconds for the validation test.
          */
-        private val DB_TEST_TIMEOUT = 10
+        private const val DB_TEST_TIMEOUT = 10
 
         /**
          * The default schema to test against when validating the connection.
@@ -74,12 +74,12 @@
          *
          * @see Constants.CTX_ATTR_DB_SCHEMA
          */
-        private val DB_DEFAULT_SCHEMA = "lightpit"
+        private const val DB_DEFAULT_SCHEMA = "lightpit"
 
         /**
          * The JNDI resource name for the data source.
          */
-        private val DS_JNDI_NAME = "jdbc/lightpit/app"
+        private const val DS_JNDI_NAME = "jdbc/lightpit/app"
     }
 
     private fun checkConnection(ds: DataSource, testSchema: String) {

mercurial