expose application object as __app__
This commit is contained in:
parent
63468e09e1
commit
86423de367
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ public class ESAppNode extends ESNode {
|
||||||
if ("upSince".equals (propname)) {
|
if ("upSince".equals (propname)) {
|
||||||
return createtime;
|
return createtime;
|
||||||
}
|
}
|
||||||
|
if ("__app__".equals (propname)) {
|
||||||
|
return new ESWrapper (app, evaluator);
|
||||||
|
}
|
||||||
return super.getProperty (propname, hash);
|
return super.getProperty (propname, hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue