Package railo.runtime.type

Examples of railo.runtime.type.StructImpl


    }
  }

  public void writeExternal(ObjectOutput out) throws IOException {
    ComponentWrap cw = new ComponentWrap(Component.ACCESS_PRIVATE,this)
        Struct _this=new StructImpl();
    Struct _var=new StructImpl();
   
   
    // this scope (removing all UDFs)
    Object member;
      {
        Iterator<Entry<Key, Object>> it = cw.entryIterator();
          Entry<Key, Object> e;
          while(it.hasNext()) {
              e = it.next();
              member = e.getValue();
              if(member instanceof UDF)continue;
              _this.setEL(e.getKey(), member);
          }
    }
   
     
      // variables scope (removing all UDFs and key "this")
      {
          ComponentScope scope = getComponentScope();
          Iterator<Entry<Key, Object>> it = scope.entryIterator();
            Entry<Key, Object> e;
          Key k;
          while(it.hasNext()) {
            e = it.next();
            k = e.getKey();
                if(KeyConstants._THIS.equalsIgnoreCase(k))continue;
                member = e.getValue();
                if(member instanceof UDF)continue;
              _var.setEL(e.getKey(), member);
            }
        }
     
      out.writeUTF(getAbsName());
    out.writeUTF(ComponentUtil.md5(cw));
View Full Code Here


        return new ArrayImpl(dimension);
    }

    @Override
    public Struct createStruct() {
        return new StructImpl();
    }
View Full Code Here

        return new StructImpl();
    }

    @Override
    public Struct createStruct(int type) {
        return new StructImpl(type);
    }
View Full Code Here

   * @param clazz
   * @return returns stored struct
   */
  private StructImpl store(Class clazz) {
    Method[] methodsArr=clazz.getMethods();
    StructImpl methodsMap=new StructImpl();
    for(int i=0;i<methodsArr.length;i++) {
      storeMethod(methodsArr[i],methodsMap);
     
    }
    map.put(clazz,methodsMap);
View Full Code Here

   * @param clazz
   * @return returns stored Struct
   */
  private StructImpl store(Class clazz) {
    Field[] fieldsArr=clazz.getFields();
    StructImpl fieldsMap=new StructImpl();
    for(int i=0;i<fieldsArr.length;i++) {
      storeField(fieldsArr[i],fieldsMap);
    }
    map.put(clazz,fieldsMap);
    return fieldsMap;
View Full Code Here

  public String getType() {
    return "test";
  }

  public Struct detail() {
    return new StructImpl();
  }
View Full Code Here

  public void init(GatewayEnginePro engine,String id, String cfcPath, Map config) throws GatewayException {
    this.engine=GatewayProFactory.toGatewayEngineImpl(engine);
    this.id=id;
   
    //requestURI=engine.toRequestURI(cfcPath);
    Struct args=new StructImpl(StructImpl.TYPE_LINKED);
    args.setEL("id", id);
    args.setEL("config", Caster.toStruct(config,null,false));
    if(!StringUtil.isEmpty(cfcPath)){
      try {
        args.setEL("listener", this.engine.getComponent(cfcPath,id));
      } catch (PageException e) {
        engine.log(this,GatewayEnginePro.LOGLEVEL_ERROR, e.getMessage());
      }
    }
   
View Full Code Here

  @Override
  public void doRestart() throws GatewayException {

    engine.log(this,GatewayEnginePro.LOGLEVEL_INFO,"restart");
    Struct args=new StructImpl();
    try{
      boolean has=callOneWay("restart",args);
      if(!has){
        if(callOneWay("stop",args)){
          //engine.clear(cfcPath,id);
View Full Code Here

  }

  @Override
  public void doStart() throws GatewayException {
    engine.log(this,GatewayEnginePro.LOGLEVEL_INFO,"start");
    Struct args=new StructImpl();
    state=STARTING;
    try{
      callOneWay("start",args);
      engine.log(this,GatewayEnginePro.LOGLEVEL_INFO,"running");
      state=RUNNING;
View Full Code Here

  @Override
  public void doStop() throws GatewayException {

    engine.log(this,GatewayEnginePro.LOGLEVEL_INFO,"stop");
    Struct args=new StructImpl();
    state=STOPPING;
    try{
      callOneWay("stop",args);
      //engine.clear(cfcPath,id);
      state=STOPPED;
View Full Code Here

TOP

Related Classes of railo.runtime.type.StructImpl

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.