jeetmp3 / spring-session

Apache License 2.0
18 stars 24 forks source link

Ability to enable-disable spring-session plugin from config file? #27

Closed adityathakur-rxlogix closed 6 years ago

adityathakur-rxlogix commented 6 years ago

It would be awesome if we can have a config driven enable-disable property in the plugin itself. Following code added SpringSessionGrailsPlugin achieves that.

` def doWithSpring = {

    mergeConfig(application)
    ConfigObject conf = application.config.springsession

    if(conf.enabled == false) {
        println "\n++++++ Skipped configuring Spring session"
        println "\nSpring session is disabled from config"
        return
    }
    ....

`

jeetmp3 commented 6 years ago

Closed via #30