// get the com path for the current custom application appComPath = getComPathForCustomAppDir(GetCurrentTemplatePath()); appBeanName = "PTBlog2"; // load the Blog Base Application CFC addTransient("#appComPath#.App", appBeanName); // load general controller addSingleton("#appComPath#blogDAO", "blogDAO"); addConstructorDependency(appBeanName, "blogDAO"); addSingleton("#appComPath#postDAO", "postDAO"); addConstructorDependency(appBeanName, "postDAO"); addSingleton("#appComPath#commentsDAO", "commentsDAO"); addConstructorDependency(appBeanName, "commentsDAO"); addSingleton("#appComPath#commentsService", "commentsService"); addConstructorDependency(appBeanName, "commentsService"); addTransient("#appComPath#blogForms", "blogForms"); addConstructorDependency(appBeanName, "blogForms"); addSingleton("#appComPath#postService", "postService"); addConstructorDependency(appBeanName, "postService"); // Dependecies from ADF Lib addConstructorDependency(appBeanName, "CEdata_1_0", "CEdata"); addConstructorDependency(appBeanName, "CSdata_1_0", "CSdata"); addConstructorDependency(appBeanName, "CSSubsite_1_0", "CSSubsite"); addConstructorDependency(appBeanName, "CSPage_1_0", "CSPage"); addConstructorDependency(appBeanName, "CSContent_1_0", "CSContent"); addConstructorDependency(appBeanName, "Data_1_0", "Data"); addConstructorDependency(appBeanName, "Date_1_0", "Date"); addConstructorDependency(appBeanName, "Scripts_1_0", "Scripts"); addConstructorDependency(appBeanName, "Utils_1_0", "Utils"); addConstructorDependency(appBeanName, "Forms_1_0", "Forms"); // Load the customized CSData for the application addSingleton("ADF.apps.pt_blog.lib.ceData_1_0", "ptBlog2_ceData"); addConstructorDependency(appBeanName, "ptBlog2_ceData", "ceData");