Java 类net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer 实例源码

项目:jasperreports    文件:VirtualizationSerializer.java   
protected static boolean isAncestorClassLoader(ClassLoader loader)
{
    for (
            ClassLoader ancestor = JRAbstractLRUVirtualizer.class.getClassLoader();
            ancestor != null;
            ancestor = ancestor.getParent())
    {
        if (ancestor.equals(loader))
        {
            return true;
        }
    }
    return false;
}