All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.devcake.groovy.remoteconsole.DefaultShellConfigurationFactory.groovy Maven / Gradle / Ivy

Go to download

The library allows to create remote console server easily, and run Groovy scripts remotely on the console server. It supports execution of parts of the script, with all import statements applied. The library can be used as a standalone remote console server, and as embedded console server. It contains default implementaiton of Remote Console client, whereas customized implementation is also available.

There is a newer version: 1.0.16
Show newest version
package org.devcake.groovy.remoteconsole

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 03.09.2010
 * Time: 17:28:36
 * To change this template use File | Settings | File Templates.
 */
class DefaultShellConfigurationFactory implements ShellConfigurationFactory {
    def bindings = [:]
    ShellConfiguration createShellConfiguration(Map options) {
        def binding
        if (!options.binding) {
            return new ShellConfiguration(null, new Binding())
        } else {
            if (!bindings[options.binding]) {
                bindings[options.binding] = new Binding()
            }
            return new ShellConfiguration(null, bindings[options.binding])
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy