![JAR search and dependency download from the Maven repository](/logo.png)
org.mvel2.optimizers.impl.refl.nodes.Notify Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tbel Show documentation
Show all versions of tbel Show documentation
TBEL is a powerful expression language for ThingsBoard platform user-defined functions.
Original implementation is based on MVEL.
package org.mvel2.optimizers.impl.refl.nodes;
import org.mvel2.compiler.AccessorNode;
import org.mvel2.integration.GlobalListenerFactory;
import org.mvel2.integration.VariableResolverFactory;
public class Notify implements AccessorNode {
private String name;
private AccessorNode nextNode;
public Notify(String name) {
this.name = name;
}
public Object getValue(Object ctx, Object elCtx, VariableResolverFactory vrf) {
GlobalListenerFactory.notifyGetListeners(ctx, name, vrf);
return nextNode.getValue(ctx, elCtx, vrf);
}
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value) {
GlobalListenerFactory.notifySetListeners(ctx, name, variableFactory, value);
return nextNode.setValue(ctx, elCtx, variableFactory, value);
}
public AccessorNode getNextNode() {
return nextNode;
}
public AccessorNode setNextNode(AccessorNode nextNode) {
return this.nextNode = nextNode;
}
public Class getKnownEgressType() {
return Object.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy