-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Well, I have removed the ZScriptVariables lookup from getVariable, and the wireOthers time has dropped to 0 (yeah!). My version is:
private Object getVariable(Object x, String fdname) {
//#feature 2770471 GenericAutowireComposer shall support wiring ZScript varible
if (x instanceof Page) {
final Page pg = (Page) x;
//Object arg = pg.getZScriptVariable(fdname);
//if (arg == null) {
Object arg = pg.getVariable(fdname);
//}
return arg;
} else {
final Component cmp = (Component) x;
//final Page page = getPage(cmp);
//Object arg = page != null ? page.getZScriptVariable(cmp, fdname): null;
//if (arg == null) {
Object arg = cmp.getVariable(fdname, false);
//}
return arg;
}
}