public abstract class AbstractScriptHandler extends Object implements ScriptHandlerInternal
CLASSPATH_CONFIGURATION| Constructor and Description |
|---|
AbstractScriptHandler(MutableURLClassLoader classLoader,
RepositoryHandler repositoryHandler,
DependencyHandler dependencyHandler,
ScriptSource scriptSource,
ConfigurationContainer configContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
dependencies(Closure configureClosure)
Configures the dependencies for the script.
|
MutableURLClassLoader |
getClassLoader()
Returns the
ClassLoader which contains the classpath for this script. |
protected Configuration |
getClasspathConfiguration() |
ConfigurationContainer |
getConfigurations()
Returns the configurations of this handler.
|
DependencyHandler |
getDependencies()
Returns the dependencies of the script.
|
RepositoryHandler |
getRepositories()
Returns a handler to create repositories which are used for retrieving dependencies for the script classpath.
|
File |
getSourceFile()
Returns the file containing the source for the script, if any.
|
URI |
getSourceURI()
Returns the URI for the script source, if any.
|
void |
repositories(Closure configureClosure)
Configures the repositories for the script dependencies.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateClassPathpublic AbstractScriptHandler(MutableURLClassLoader classLoader, RepositoryHandler repositoryHandler, DependencyHandler dependencyHandler, ScriptSource scriptSource, ConfigurationContainer configContainer)
public void dependencies(Closure configureClosure)
ScriptHandlerDependencyHandler for
this handler. The DependencyHandler is passed to the closure as the closure's delegate.dependencies in interface ScriptHandlerconfigureClosure - the closure to use to configure the dependencies.protected Configuration getClasspathConfiguration()
public DependencyHandler getDependencies()
ScriptHandlergetDependencies in interface ScriptHandlerScriptHandler.getConfigurations()public RepositoryHandler getRepositories()
ScriptHandlergetRepositories in interface ScriptHandlerpublic void repositories(Closure configureClosure)
ScriptHandlerRepositoryHandler for this handler. The RepositoryHandler is passed to the closure as the closure's
delegate.repositories in interface ScriptHandlerconfigureClosure - the closure to use to configure the repositories.public ConfigurationContainer getConfigurations()
ScriptHandlergetConfigurations in interface ScriptHandlerpublic MutableURLClassLoader getClassLoader()
ScriptHandlerClassLoader which contains the classpath for this script.getClassLoader in interface ScriptHandlergetClassLoader in interface ScriptClassLoaderProviderpublic File getSourceFile()
ScriptHandlergetSourceFile in interface ScriptHandlerpublic URI getSourceURI()
ScriptHandlergetSourceURI in interface ScriptHandlerCopyright © 2013. All rights reserved