From 6c1bd97ad169bd1310235faaf8e7fa28ff84f5fc Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Tue, 16 Feb 2016 15:31:33 +0100 Subject: [PATCH] Add extra getters to DatabaseAdaptor --- .../jetty/server/session/DatabaseAdaptor.java | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/session/DatabaseAdaptor.java b/jetty-server/src/main/java/org/eclipse/jetty/server/session/DatabaseAdaptor.java index ffdcce999cd..107ef24ad7d 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/session/DatabaseAdaptor.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/session/DatabaseAdaptor.java @@ -61,6 +61,9 @@ public class DatabaseAdaptor private String _connectionUrl; private Driver _driver; private DataSource _datasource; + + + private String _jndiName; @@ -217,6 +220,37 @@ public class DatabaseAdaptor _jndiName=jndi; } + + public String getDatasourceName () + { + return _jndiName; + } + + + public DataSource getDatasource() + { + return _datasource; + } + + + public String getDriverClassName() + { + return _driverClassName; + } + + + public Driver getDriver() + { + return _driver; + } + + public String getConnectionUrl() + { + return _connectionUrl; + } + + + public void initialize () throws Exception { @@ -249,7 +283,6 @@ public class DatabaseAdaptor } } } - /**