groovy.lang.GroovyClassLoader.setResourceLoader()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(203)

本文整理了Java中groovy.lang.GroovyClassLoader.setResourceLoader()方法的一些代码示例,展示了GroovyClassLoader.setResourceLoader()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GroovyClassLoader.setResourceLoader()方法的具体详情如下:
包路径:groovy.lang.GroovyClassLoader
类名称:GroovyClassLoader
方法名:setResourceLoader

GroovyClassLoader.setResourceLoader介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.groovy/groovy

public void setResourceLoader(GroovyResourceLoader resourceLoader) {
  delegate.setResourceLoader(resourceLoader);
}

代码示例来源:origin: org.codehaus.groovy/groovy

compiler.unit.getClassLoader().setResourceLoader(new GroovyResourceLoader() {
  public URL loadGroovySource(String filename) throws MalformedURLException {
    return null;

代码示例来源:origin: apache/groovy

if (!forceLookupUnnamedFiles) {
  loader.setResourceLoader(new GroovyResourceLoader() {
    public URL loadGroovySource(String filename) throws MalformedURLException {
      return null;

代码示例来源:origin: org.codehaus.groovy/groovy-jdk14

public void setResourceLoader(GroovyResourceLoader resourceLoader) {
  delegate.setResourceLoader(resourceLoader);
}

代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal

public void setResourceLoader(GroovyResourceLoader resourceLoader) {
  delegate.setResourceLoader(resourceLoader);
}

代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

public void setResourceLoader(GroovyResourceLoader resourceLoader) {
  delegate.setResourceLoader(resourceLoader);
}

代码示例来源:origin: org.kohsuke.droovy/groovy

public void setResourceLoader(GroovyResourceLoader resourceLoader) {
  delegate.setResourceLoader(resourceLoader);
}

代码示例来源:origin: org.codehaus.mojo.groovy.runtime/groovy-runtime-1.1

private GroovyClassLoader createGroovyClassLoader(final ClassLoader classLoader, final ResourceLoader resourceLoader) {
  assert classLoader != null;
  // resourceLoader can be null
  GroovyClassLoader groovyClassLoader = new GroovyClassLoader(classLoader);
  groovyClassLoader.setResourceLoader(createGroovyResourceLoader(classLoader, resourceLoader));
  return groovyClassLoader;
}

代码示例来源:origin: org.codehaus.groovy.maven.runtime/gmaven-runtime-1.6

private GroovyClassLoader createGroovyClassLoader(final ClassLoader classLoader, final ResourceLoader resourceLoader) {
  assert classLoader != null;
  // resourceLoader can be null
  GroovyClassLoader groovyClassLoader = new GroovyClassLoader(classLoader);
  groovyClassLoader.setResourceLoader(createGroovyResourceLoader(classLoader, resourceLoader));
  return groovyClassLoader;
}

代码示例来源:origin: org.codehaus.gmaven.runtime/gmaven-runtime-2.0

private GroovyClassLoader createGroovyClassLoader(final ClassLoader classLoader, final ResourceLoader resourceLoader) {
  assert classLoader != null;
  // resourceLoader can be null
  GroovyClassLoader groovyClassLoader = new GroovyClassLoader(classLoader);
  groovyClassLoader.setResourceLoader(createGroovyResourceLoader(classLoader, resourceLoader));
  return groovyClassLoader;
}

代码示例来源:origin: org.codehaus.gmaven.runtime/gmaven-runtime-1.7

private GroovyClassLoader createGroovyClassLoader(final ClassLoader classLoader, final ResourceLoader resourceLoader) {
  assert classLoader != null;
  // resourceLoader can be null
  GroovyClassLoader groovyClassLoader = new GroovyClassLoader(classLoader);
  groovyClassLoader.setResourceLoader(createGroovyResourceLoader(classLoader, resourceLoader));
  return groovyClassLoader;
}

代码示例来源:origin: org.codehaus.gmaven.runtime/gmaven-runtime-1.6

private GroovyClassLoader createGroovyClassLoader(final ClassLoader classLoader, final ResourceLoader resourceLoader) {
  assert classLoader != null;
  // resourceLoader can be null
  GroovyClassLoader groovyClassLoader = new GroovyClassLoader(classLoader);
  groovyClassLoader.setResourceLoader(createGroovyResourceLoader(classLoader, resourceLoader));
  return groovyClassLoader;
}

代码示例来源:origin: org.codehaus.gmaven.runtime/gmaven-runtime-1.5

private GroovyClassLoader createGroovyClassLoader(final ClassLoader classLoader, final ResourceLoader resourceLoader) {
  assert classLoader != null;
  // resourceLoader can be null
  GroovyClassLoader groovyClassLoader = new GroovyClassLoader(classLoader);
  groovyClassLoader.setResourceLoader(createGroovyResourceLoader(classLoader, resourceLoader));
  return groovyClassLoader;
}

代码示例来源:origin: org.codehaus.gmaven/gmaven-adapter-impl

@Override
 public GroovyClassLoader run() {
  GroovyClassLoader gcl = new GroovyClassLoader(classLoader);
  gcl.setResourceLoader(createGroovyResourceLoader(resourceLoader));
  return gcl;
 }
});

代码示例来源:origin: groovy/gmaven

@Override
 public GroovyClassLoader run() {
  GroovyClassLoader gcl = new GroovyClassLoader(classLoader);
  gcl.setResourceLoader(createGroovyResourceLoader(resourceLoader));
  return gcl;
 }
});

代码示例来源:origin: org.codehaus.groovy/groovy-ant

if (!forceLookupUnnamedFiles) {
  loader.setResourceLoader(new GroovyResourceLoader() {
    public URL loadGroovySource(String filename) throws MalformedURLException {
      return null;

代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

compiler.unit.getClassLoader().setResourceLoader(new GroovyResourceLoader() {
  public URL loadGroovySource(String filename) throws MalformedURLException {
    return null;

代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

loader.setResourceLoader(new GroovyResourceLoader() {
  public URL loadGroovySource(String filename) throws MalformedURLException {
    return null;

代码示例来源:origin: org.gradle/gradle-core

groovyClassLoader.setResourceLoader(NO_OP_GROOVY_RESOURCE_LOADER);
String scriptText = source.getResource().getText();
String scriptName = source.getClassName();

相关文章