Search in sources :

Example 1 with CFMLEngineWrapper

use of lucee.loader.engine.CFMLEngineWrapper in project Lucee by lucee.

the class CFMLEngineImpl method isRunning.

public boolean isRunning() {
    try {
        CFMLEngine other = CFMLEngineFactory.getInstance();
        // FUTURE patch, do better impl when changing loader
        if (other != this && controlerState.active() && !(other instanceof CFMLEngineWrapper)) {
            SystemOut.printDate("CFMLEngine is still set to true but no longer valid, " + lucee.runtime.config.Constants.NAME + " disable this CFMLEngine.");
            controlerState.setActive(false);
            reset();
            return false;
        }
    } catch (Throwable t) {
        ExceptionUtil.rethrowIfNecessary(t);
    }
    return controlerState.active();
}
Also used : CFMLEngineWrapper(lucee.loader.engine.CFMLEngineWrapper) CFMLEngine(lucee.loader.engine.CFMLEngine)

Aggregations

CFMLEngine (lucee.loader.engine.CFMLEngine)1 CFMLEngineWrapper (lucee.loader.engine.CFMLEngineWrapper)1