return false;
}
private ClassPool getCorrectPoolForResource(String classname, URL url)
{
ClassPoolRepository classPoolRepository = ClassPoolRepository.getInstance();
synchronized(classPoolRepository.getRegisteredCLs())
{
//JBoss 5 has an extra NoAnnotationURLCLassLoader that is not on the default path, make sure that that is checked at the end
//FIXME This needs revisiting/removing once the
ArrayList<AbstractClassPool> noAnnotationURLClassLoaderPools = null;
String resource = url.toString();
for(ClassPool pool : classPoolRepository.getRegisteredCLs().values())
{
AbstractClassPool candidate = (AbstractClassPool)pool;
if (candidate.isUnloadedClassLoader())
{
classPoolRepository.unregisterClassLoader(candidate.getClassLoader());
continue;
}
if (candidate.getClassLoader() instanceof RepositoryClassLoader)
{