Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.http.jetty/src/org/eclipse/osee/http/jetty/internal/osgi/JdbcJettyHttpService.java')
-rw-r--r--plugins/org.eclipse.osee.http.jetty/src/org/eclipse/osee/http/jetty/internal/osgi/JdbcJettyHttpService.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.http.jetty/src/org/eclipse/osee/http/jetty/internal/osgi/JdbcJettyHttpService.java b/plugins/org.eclipse.osee.http.jetty/src/org/eclipse/osee/http/jetty/internal/osgi/JdbcJettyHttpService.java
new file mode 100644
index 00000000000..df038fd9c27
--- /dev/null
+++ b/plugins/org.eclipse.osee.http.jetty/src/org/eclipse/osee/http/jetty/internal/osgi/JdbcJettyHttpService.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.http.jetty.internal.osgi;
+
+import java.util.Map;
+import org.eclipse.osee.http.jetty.JettyServer.Builder;
+import org.eclipse.osee.jdbc.JdbcService;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class JdbcJettyHttpService extends AbstractJettyHttpService {
+
+ private JdbcService jdbcService;
+
+ public void setJdbcService(JdbcService jdbcService) {
+ this.jdbcService = jdbcService;
+ }
+
+ @Override
+ protected void customizeJettyServer(Builder builder, Map<String, Object> props) {
+ builder.jdbcSessionManagerFactory(jdbcService.getClient());
+ }
+
+} \ No newline at end of file

Back to the top