Package com.bleujin.framework.db.servant

Examples of com.bleujin.framework.db.servant.ExtraServant


            this.name = config.getChild("controller-name").getValue();
            this.dbm = (DBManager) InstanceCreator.createConfiguredInstance(config.getChild("database-manager.configured-object"));


            Configuration[] configOfServant = config.getChildren("extra-servant.configured-object");
            ExtraServant eservant = null;

            // None Channel...
            if (configOfServant == null || configOfServant.length <= 0) {
                echannel = new ServantChannel(new NoneServant());
            } else {
                for (int i = 0; i < configOfServant.length; i++) {
                    if (i == 0) {
                        eservant = (ExtraServant) InstanceCreator.createConfiguredInstance(configOfServant[i]);
                        echannel = new ServantChannel(eservant);
                        eservant.setChannel(echannel);
                    } else {
                        ExtraServant nextServant = (ExtraServant) InstanceCreator.createConfiguredInstance(configOfServant[i]);
                        eservant.setNext(nextServant);
                        eservant = nextServant;
                    }
                }
            }
View Full Code Here


        this.echannel.startWorker() ;
    }
   
    public void addServant(ExtraServant addServant){
      addServant.setChannel(this.echannel) ;
      ExtraServant lastServant = echannel.getExtraServant() ;
     
      while(lastServant.getNextServant() != null){
        lastServant = lastServant.getNextServant() ;
      }
      lastServant.setNext(addServant) ;
    }
View Full Code Here

            this.name = config.getChild("controller-name").getValue();
            this.dbm = (DBManager) InstanceCreator.createConfiguredInstance(config.getChild("database-manager.configured-object"));


            Configuration[] configOfServant = config.getChildren("extra-servant.configured-object");
            ExtraServant eservant = null;

            // None Channel...
            if (configOfServant == null || configOfServant.length <= 0) {
                echannel = new ServantChannel(new NoneServant());
            } else {
                for (int i = 0; i < configOfServant.length; i++) {
                    if (i == 0) {
                        eservant = (ExtraServant) InstanceCreator.createConfiguredInstance(configOfServant[i]);
                        echannel = new ServantChannel(eservant);
                        eservant.setChannel(echannel);
                    } else {
                        ExtraServant nextServant = (ExtraServant) InstanceCreator.createConfiguredInstance(configOfServant[i]);
                        eservant.setNext(nextServant);
                        eservant = nextServant;
                    }
                }
            }
View Full Code Here

        this.echannel.startWorker() ;
    }
   
    public void addServant(ExtraServant addServant){
      addServant.setChannel(this.echannel) ;
      ExtraServant lastServant = echannel.getExtraServant() ;
     
      while(lastServant.getNextServant() != null){
        lastServant = lastServant.getNextServant() ;
      }
      lastServant.setNext(addServant) ;
    }
View Full Code Here

TOP

Related Classes of com.bleujin.framework.db.servant.ExtraServant

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.