File tree 5 files changed +27
-23
lines changed
5 files changed +27
-23
lines changed Original file line number Diff line number Diff line change 1
1
# ring-spring-security
2
2
3
- FIXME: write description
3
+ Sample application demonstrating Spring, Spring Security and Ring integration with Jetty.
4
4
5
5
## Usage
6
6
7
- FIXME: write
7
+ Start the REPL and follow instructions.
8
8
9
9
## License
10
10
11
- Copyright (C) 2011 FIXME
11
+ Copyright (C) 2011
Matthew Kennedy <[email protected] >
12
12
13
13
Distributed under the Eclipse Public License, the same as Clojure.
Original file line number Diff line number Diff line change
1
+
1
2
(defproject ring-spring-security " 1.0.0-SNAPSHOT"
2
- :description " FIXME: write description "
3
+ :description " Sample application demonstrating Spring, Spring Security and Ring integration with Jetty. "
3
4
:dependencies [[org.clojure/clojure " 1.2.1" ]
4
5
[ring/ring-core " 0.3.11" ]
5
6
[ring/ring-jetty-adapter " 0.3.11" ]
11
12
[org.slf4j/jcl-over-slf4j " 1.6.1" ]
12
13
[ch.qos.logback/logback-classic " 0.9.29" ]]
13
14
:exclusions [commons-logging/commons-logging]
14
- :dev-dependencies [[ring/ring-devel " 0.3.11" ]])
15
+ :dev-dependencies [[ring/ring-devel " 0.3.11" ]]
16
+ :repl-init ring-spring-security.repl-helper )
Original file line number Diff line number Diff line change 112
112
([server handler]
113
113
(boot-spring server handler nil )))
114
114
115
- (defn boot [join?]
116
- (let [server (jetty/run-jetty #'app
117
- {:port 9090
118
- :join? join?
119
- :configurator (fn [server]
120
- (boot-spring server #'app " classpath:applicationContext.xml" ))})]
121
- ; this is a hack to get around the handler ring-adapter-jetty forces on us
122
- (doseq [handler (remove #(= (class %) org.mortbay.jetty.servlet.Context) (seq (.getHandlers server)))]
123
- (.removeHandler server handler))))
124
-
125
- (comment
126
- (def jetty (boot true ))
127
- (.stop jetty))
115
+ (defn boot
116
+ ([join?]
117
+ (let [server (jetty/run-jetty
118
+ #'app
119
+ {:port 9090
120
+ :join? join?
121
+ :configurator (fn [server]
122
+ (boot-spring server #'app " classpath:applicationContext.xml" ))})]
123
+ ; ; this is a hack to get around the handler ring-adapter-jetty forces on us
124
+ (doseq [handler (remove #(= (class %) org.mortbay.jetty.servlet.Context)
125
+ (seq (.getHandlers server)))]
126
+ (.removeHandler server handler))))
127
+ ([]
128
+ (boot false )))
129
+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+
2
+ (ns ring-spring-security.repl-helper
3
+ (:use [ring-spring-security.core :only [boot]]))
4
+
5
+ (println " Type `(boot)' to start the sample Spring application." )
You can’t perform that action at this time.
0 commit comments