本文整理了Java中groovy.lang.GroovyClassLoader.clearCache()
方法的一些代码示例,展示了GroovyClassLoader.clearCache()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GroovyClassLoader.clearCache()
方法的具体详情如下:
包路径:groovy.lang.GroovyClassLoader
类名称:GroovyClassLoader
方法名:clearCache
[英]removes all classes from the class cache.
[中]从类缓存中删除所有类。
代码示例来源:origin: org.codehaus.groovy/groovy
public void resetLoadedClasses() {
loader.clearCache();
}
代码示例来源:origin: org.codehaus.groovy/groovy
public void clearCache() {
delegate.clearCache();
}
代码示例来源:origin: org.codehaus.groovy/groovy
/**
* Closes this GroovyClassLoader and clears any caches it maintains.
* <p>
* No use should be made of this instance after this method is
* invoked. Any classes that are already loaded are still accessible.
*
* @throws IOException
* @see URLClassLoader#close()
* @see #clearCache()
* @since 2.5.0
*/
@Override
public void close() throws IOException {
super.close();
clearCache();
}
代码示例来源:origin: apache/groovy
} finally {
groovy.resetLoadedClasses();
groovy.getClassLoader().clearCache();
if (contextClassLoader || maven) thread.setContextClassLoader(savedLoader);
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void stop() {
if (groovyClassLoader != null) {
groovyClassLoader.clearCache();
groovyClassLoader = null;
}
}
代码示例来源:origin: org.elasticsearch/elasticsearch-lang-groovy
@Override
public void close() {
loader.clearCache();
}
代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal
public void resetLoadedClasses() {
loader.clearCache();
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void stop() {
if (groovyClassLoader != null) {
groovyClassLoader.clearCache();
groovyClassLoader = null;
}
}
代码示例来源:origin: org.codehaus.gmaven/gmaven-adapter-impl
private void cleanup() {
gcl.clearCache();
}
};
代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal
public void clearCache() {
delegate.clearCache();
}
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
public void resetLoadedClasses() {
loader.clearCache();
}
代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm
public void clearCache() {
delegate.clearCache();
}
代码示例来源:origin: org.nuxeo.ecm.automation/nuxeo-automation-core
public void clearCache() {
cache = new ConcurrentHashMap<File, Entry>();
loader.clearCache();
}
代码示例来源:origin: de.dfki.cos.basys.common/de.dfki.cos.basys.common.scxml
public void clearCache() {
synchronized (scriptCache) {
scriptCache.clear();
if (groovyClassLoader != null) {
groovyClassLoader.clearCache();
}
}
}
}
代码示例来源:origin: org.nuxeo.ecm.webengine/nuxeo-webengine-core
public void clearCache() {
cache = new ConcurrentHashMap<File, Entry>();
loader.clearCache();
}
代码示例来源:origin: org.apache.batchee/batchee-groovy
public void release() throws IOException {
loader.clearCache();
if (Closeable.class.isInstance(loader)) {
Closeable.class.cast(loader).close();
}
}
代码示例来源:origin: org.eobjects.datacleaner/DataCleaner-groovy
@Close
public void close() {
_groovyObject = null;
_groovyClassLoader.clearCache();
_groovyClassLoader = null;
}
代码示例来源:origin: datacleaner/DataCleaner
@Close
public void close() {
_groovyObject = null;
_groovyClassLoader.clearCache();
_groovyClassLoader = null;
}
代码示例来源:origin: org.eobjects.datacleaner/DataCleaner-groovy
@Close
public void close() {
_groovyObject.invokeMethod("close", new Object[] {});
_groovyObject = null;
_groovyClassLoader.clearCache();
_groovyClassLoader = null;
}
代码示例来源:origin: datacleaner/DataCleaner
@Close
public void close() {
_groovyObject.invokeMethod("close", new Object[] {});
_groovyObject = null;
_groovyClassLoader.clearCache();
_groovyClassLoader = null;
}
内容来源于网络,如有侵权,请联系作者删除!