Package railo.runtime

Examples of railo.runtime.ComponentImpl


            pc.removeLastPageSource(true);
        }
    }

  public static ComponentImpl loadComponent(PageContext pc,Page page, PageSource ps,String callPath, boolean isRealPath) throws PageException  {
        ComponentImpl rtn=null;
        if(pc.getConfig().debug()) {
            DebugEntryTemplate debugEntry=pc.getDebugger().getEntry(pc,ps);
            pc.addPageSource(ps,true);
           
            int currTime=pc.getExecutionTime();
            long exeTime=0;
            long time=System.nanoTime();
            try {
              debugEntry.updateFileLoadTime((int)(System.nanoTime()-time));
              exeTime=System.nanoTime();
                if(page==null)page=((PageSourceImpl)ps).loadPage(pc);
              rtn=initComponent(pc,page,callPath,isRealPath);
               
               
            }
            finally {
              if(rtn!=null)rtn.setLoaded(true);
              int diff= ((int)(System.nanoTime()-exeTime)-(pc.getExecutionTime()-currTime));
                pc.setExecutionTime(pc.getExecutionTime()+(int)(System.nanoTime()-time));
                debugEntry.updateExeTime(diff);
                pc.removeLastPageSource(true);
            }
        }
    // no debug
        else {
            pc.addPageSource(ps,true);
            try {  
              if(page==null)page=((PageSourceImpl)ps).loadPage(pc);
              rtn=initComponent(pc,page,callPath,isRealPath);
            }
            finally {
              if(rtn!=null)rtn.setLoaded(true);
                pc.removeLastPageSource(true);
            }
        }
      
    return rtn;
View Full Code Here


      throw new ApplicationException("invalid component definition ["+callPath+"]");
      }
   
      ComponentPage cp = (ComponentPage)page;
     
    ComponentImpl c = cp.newInstance(pc,callPath,isRealPath);
        c.setInitalized(true);
        return c;
   
  }
View Full Code Here

      PageSource ps = isWeb?
          config.getTagMapping().getPageSource(filename):
          config.getServerTagMapping().getPageSource(filename);
     
      Page p = ps.loadPage(pc);
      ComponentImpl c = ComponentLoader.loadComponent(pc, p, ps, filename, true,true);
      ComponentWrap cw = ComponentWrap.toComponentWrap(Component.ACCESS_PRIVATE,c);
      Struct meta = Caster.toStruct( cw.get(KeyConstants._metadata,null),null);

      // TODO handle all metadata here and make checking at runtime useless
      if(meta!=null) {
View Full Code Here

TOP

Related Classes of railo.runtime.ComponentImpl

Copyright © 2018 www.massapicom. 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.