Examples of invokeDirectFunction()


Examples of helma.framework.core.RequestEvaluator.invokeDirectFunction()

        // New node is going ot be used, invoke onInit() on it
        // Invoke onInit() if it is defined by this Node's prototype
        try {
            // We need to reach deap into helma.framework.core to invoke onInit(),
            // but the functionality is really worth it.
            reval.invokeDirectFunction(node, "onInit", RequestEvaluator.EMPTY_ARGS);
        } catch (Exception x) {
            app.logError("Error invoking onInit()", x);
        }
        return node;
    }
View Full Code Here

Examples of helma.framework.core.RequestEvaluator.invokeDirectFunction()

        try {
            // We need to reach deap into helma.framework.core to invoke onPersist(),
            // but the functionality is really worth it.
            RequestEvaluator reval = app.getCurrentRequestEvaluator();
            if (reval != null) {
                reval.invokeDirectFunction(node, "onPersist", RequestEvaluator.EMPTY_ARGS);
            }
        } catch (Exception x) {
            app.logError("Error invoking onPersist()", x);
        }
    }
View Full Code Here

Examples of helma.framework.core.RequestEvaluator.invokeDirectFunction()

        try {
            // We need to reach deap into helma.framework.core to invoke toString(),
            // but the functionality is really worth it.
            RequestEvaluator reval = getApp().getCurrentRequestEvaluator();
            if (reval != null) {
                Object str = reval.invokeDirectFunction(this, "toString", RequestEvaluator.EMPTY_ARGS);
                if (str instanceof String)
                    return (String) str;
            }
        } catch (Exception x) {
            // fall back to default representation
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.