Search in sources :

Example 1 with Interface

use of lucee.runtime.Interface in project Lucee by lucee.

the class MetadataUtil method hasChanged.

private static boolean hasChanged(PageContext pc, long lastMetaCreation, ComponentImpl component) throws PageException {
    if (component == null)
        return false;
    // check the component
    Page p = getPage(pc, component._getPageSource());
    if (p == null || hasChanged(p.getCompileTime(), lastMetaCreation))
        return true;
    // check interfaces
    Interface[] interfaces = component.getInterfaces();
    if (!ArrayUtil.isEmpty(interfaces)) {
        if (hasChanged(pc, lastMetaCreation, interfaces))
            return true;
    }
    // check base
    return hasChanged(pc, lastMetaCreation, (ComponentImpl) component.getBaseComponent());
}
Also used : Page(lucee.runtime.Page) Interface(lucee.runtime.Interface)

Aggregations

Interface (lucee.runtime.Interface)1 Page (lucee.runtime.Page)1