public static AbstractBllFactory GetBllFactory()
 {
     string bllType = ConfigurationManager.AppSettings["bllType"];
     AbstractBllFactory bllFactory = null;
     switch (bllType)
     {
         case "blla":
             bllFactory = new BllFactoryA();
             break;
         case "bllb":
             bllFactory = new BllFactoryB();
             break;
     }
     return bllFactory;
 }
示例#2
0
        public static AbstractBllFactory GetBllFactory()
        {
            string             bllType    = ConfigurationManager.AppSettings["bllType"];
            AbstractBllFactory bllFactory = null;

            switch (bllType)
            {
            case "blla":
                bllFactory = new BllFactoryA();
                break;

            case "bllb":
                bllFactory = new BllFactoryB();
                break;
            }
            return(bllFactory);
        }