Revision history [back]

click to hide/show revision 1
initial version

answered 2010-06-01 03:38:45 +0800

xmedeko gravatar image xmedeko

http://xmedeko.blogspot.c...

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;
            }
        }
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More