Package railo.runtime

Examples of railo.runtime.ComponentScope


    }
   
    private static Object _toPojo(PageContext pc, TypeMapping tm,Component comp, Class targetClass, Set<Object> done) throws PageException {//print.ds();System.exit(0);
      ComponentAccess ca = ComponentUtil.toComponentAccess(comp);
      comp=ComponentWrap.toComponentWrap(Component.ACCESS_PRIVATE,ca);
    ComponentScope scope = ca.getComponentScope();
     
      Property[] props=comp.getProperties(false);
      //Map rtn=new HashTable();
      Object obj=null;
    try {
      obj = ClassUtil.loadInstance(ComponentUtil.getServerComponentPropertiesClass(pc,comp));
    } catch (ClassException e) {
      throw Caster.toPageException(e);
    }
     
      //PageContext pc = ThreadLocalPageContext.get();
      Property p;
      Object v;
      Collection.Key k;
    CFMLExpressionInterpreter interpreter = new CFMLExpressionInterpreter();
      for(int i=0;i<props.length;i++){
        p=props[i];
        k=Caster.toKey(p.getName());
      // value
        v=scope.get(k,null);
        if(v==null)v=comp.get(k, null);
      // default
       
        if(v!=null)v=Caster.castTo(pc, p.getType(), v, false);
        else{
View Full Code Here


            comp.set(e.getKey(),e.getValue());
    }
   
  // Variables
       
          ComponentScope scope = comp.getComponentScope();
         
          // delete variables scope data members
          Key[] sKeys = CollectionUtil.keys(scope);
        for(int i=0;i<sKeys.length;i++) {
          if(KeyConstants._this.equals(sKeys[i])) continue;
          if(scope.get(sKeys[i]) instanceof UDF) continue;
                scope.removeEL(sKeys[i]);
        }
         
         
          // set variables scope data members
        it=sctVariables.entryIterator();
          //keys = sctVariables.keys();
      while(it.hasNext()) {
        e=it.next();
        scope.set(e.getKey(),e.getValue());
      }
       
  }
View Full Code Here

TOP

Related Classes of railo.runtime.ComponentScope

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.