public class GroovyWiringModule
extends com.google.inject.AbstractModule
Module.| Constructor and Description |
|---|
GroovyWiringModule(Collection<URL> scripts) |
GroovyWiringModule(URL... scripts) |
| Modifier and Type | Method and Description |
|---|---|
GroovyWiringModule |
addImports(Class... classes) |
GroovyWiringModule |
addImports(String... imports) |
GroovyWiringModule |
addStarImports(String... packages) |
static GroovyWiringModule |
allOf(File scriptsFiles)
Creates that loads all the specified script files.
|
protected void |
configure() |
protected groovy.lang.GroovyShell |
createShell()
Creates
GroovyShell that controls how scripts are loaded. |
GroovyWiringModule |
withClassLoader(ClassLoader cl)
Sets the class loader that determines what classes Groovy wiring script will see.
|
GroovyWiringModule |
withLogLevel(Level l)
Tweaks the logging level to report which scripts are loaded.
|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingpublic GroovyWiringModule(URL... scripts)
public GroovyWiringModule(Collection<URL> scripts)
public GroovyWiringModule withLogLevel(Level l)
Level.INFO
so that the log indicates precisely what's loaded.public GroovyWiringModule withClassLoader(ClassLoader cl)
public GroovyWiringModule addImports(String... imports)
public GroovyWiringModule addStarImports(String... packages)
public GroovyWiringModule addImports(Class... classes)
protected void configure()
configure in class com.google.inject.AbstractModulepublic static GroovyWiringModule allOf(File scriptsFiles) throws IOException
scriptsFiles - If this is a file, that single file is loaded. If this is a directory,
all the "*.groovy" files in this directory gets loaded (in their
lexicographical order to guarantee consistency.)IOExceptionprotected groovy.lang.GroovyShell createShell()
GroovyShell that controls how scripts are loaded.Copyright © 2004-2014. All Rights Reserved.