@CompileStatic public class EnvironmentBuilder extends Object implements ConfigurationReader, Supplier<Environment>, groovy.lang.GroovyObject
Constructor and Description |
---|
EnvironmentBuilder(Properties props) |
Modifier and Type | Method and Description |
---|---|
DispatcherConfiguration |
dispatcher(String name,
groovy.lang.Closure c) |
Dispatcher |
dispatcher(String name,
Dispatcher d) |
Environment |
get()
Get an object.
|
String |
getDefaultDispatcher() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
ReactorConfiguration |
read()
Reads the configuration
|
void |
setDefaultDispatcher(String value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
public EnvironmentBuilder(Properties props)
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public String getDefaultDispatcher()
public void setDefaultDispatcher(String value)
public Environment get()
Supplier
get
in interface Supplier<Environment>
public ReactorConfiguration read()
ConfigurationReader
read
in interface ConfigurationReader
null
.public DispatcherConfiguration dispatcher(String name, @DelegatesTo(strategy=1,value=DispatcherConfigurationBuilder.class) groovy.lang.Closure c)
public Dispatcher dispatcher(String name, Dispatcher d)
Copyright © 2017. All rights reserved.