|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
---|---|
def |
ENV_METHOD
|
def |
ENV_SETTINGS
|
Map |
bindingVars
|
GroovyClassLoader |
classLoader
|
def |
envMode
|
String |
environment
|
Constructor Summary | |
ConfigSlurper()
|
|
ConfigSlurper(String env)
Constructs a new ConfigSlurper instance using the given environment |
Method Summary | |
---|---|
ConfigObject |
parse(Properties properties)
Parses a ConfigObject instances from an instance of java.util.Properties |
ConfigObject |
parse(String script)
Parse the given script as a string and return the configuration object |
ConfigObject |
parse(Class scriptClass)
Create a new instance of the given script class and parse a configuration object from it |
ConfigObject |
parse(Script script)
Parse the given script into a configuration object (a Map) |
ConfigObject |
parse(URL scriptLocation)
Parses a Script represented by the given URL into a ConfigObject |
ConfigObject |
parse(Script script, URL location)
Parses the passed groovy.lang.Script instance using the second argument to allow the ConfigObject to retain an reference to the original location other Groovy script |
void |
setBinding(Map vars)
Sets any additional variables that should be placed into the binding when evaluating Config scripts |
Constructor Detail |
---|
public ConfigSlurper()
public ConfigSlurper(String env)
Method Detail |
---|
ConfigObject parse(Properties properties)
ConfigObject parse(String script)
ConfigObject parse(Class scriptClass)
ConfigObject parse(Script script)
ConfigObject parse(URL scriptLocation)
ConfigObject parse(Script script, URL location)
void setBinding(Map vars)