in src/main/java/org/apache/sling/jcr/classloader/internal/ClassLoaderWriterImpl.java [218:235]
private synchronized RepositoryClassLoader getOrCreateClassLoader() {
if ( this.repositoryClassLoader == null || !this.repositoryClassLoader.isLive() ) {
// make sure to cleanup any existing class loader
this.destroyRepositoryClassLoader();
// get the dynamic class loader for the bundle using this
// class loader writer
final DynamicClassLoaderManager dclm = (DynamicClassLoaderManager) this.callerBundle.getBundleContext().getService(
this.dynamicClassLoaderManager);
this.repositoryClassLoader = new RepositoryClassLoader(
this.classPath,
this,
dclm.getDynamicClassLoader());
}
return this.repositoryClassLoader;
}