// App specific variables appBeanName = "ptSocialMedia"; // Get the com path for the current custom application appComPath = getComPathForCustomAppDir(GetCurrentTemplatePath()); // Load the APP Base addSingleton("#appComPath#App", appBeanName); // Load the ptSocialMedia Service component addSingleton("#appComPath#socialMediaService", "socialMediaService"); addConstructorDependency(appBeanName, "socialMediaService"); // Inject Dependecies for the socialMediaCacheDAO into the feedController addConstructorDependency("socialMediaService", "scriptsService_1_1", "scriptsService"); // Load the ptSocialMedia Feed Controller component addSingleton("#appComPath#feedController", "feedController"); addConstructorDependency(appBeanName, "feedController"); // Load Service API Components addSingleton("#appComPath#facebookAPI", "facebookAPI"); addConstructorDependency(appBeanName, "facebookAPI"); addSingleton("#appComPath#twitterAPI", "twitterAPI"); addConstructorDependency(appBeanName, "twitterAPI"); // Load the ptSocialMedia Service component addSingleton("#appComPath#facebookFeedsService", "facebookFeedsService"); addConstructorDependency(appBeanName, "facebookFeedsService"); addSingleton("#appComPath#twitterFeedsService", "twitterFeedsService"); addConstructorDependency(appBeanName, "twitterFeedsService"); addSingleton("#appComPath#wordPressFeedsService", "wordPressFeedsService"); addConstructorDependency(appBeanName, "wordPressFeedsService"); addSingleton("#appComPath#youTubeFeedsService", "youTubeFeedsService"); addConstructorDependency(appBeanName, "youTubeFeedsService"); // Load the ptSocialMedia Feeds DAO components addSingleton("#appComPath#facebookFeedsDAO", "facebookFeedsDAO"); addConstructorDependency(appBeanName, "facebookFeedsDAO"); addSingleton("#appComPath#twitterFeedsDAO", "twitterFeedsDAO"); addConstructorDependency(appBeanName, "twitterFeedsDAO"); addSingleton("#appComPath#wordPressFeedsDAO", "wordPressFeedsDAO"); addConstructorDependency(appBeanName, "wordPressFeedsDAO"); addSingleton("#appComPath#youTubeFeedsDAO", "youTubeFeedsDAO"); addConstructorDependency(appBeanName, "youTubeFeedsDAO"); // Load the ptSocialMedia Element DAO components addSingleton("#appComPath#socialMediaSelectorDAO", "socialMediaSelectorDAO"); addConstructorDependency(appBeanName, "socialMediaSelectorDAO"); addSingleton("#appComPath#facebookPagesDAO", "facebookPagesDAO"); addConstructorDependency(appBeanName, "facebookPagesDAO"); addSingleton("#appComPath#twitterAccountsKeywordsDAO", "twitterAccountsKeywordsDAO"); addConstructorDependency(appBeanName, "twitterAccountsKeywordsDAO"); addSingleton("#appComPath#wordPressBlogsDAO", "wordPressBlogsDAO"); addConstructorDependency(appBeanName, "wordPressBlogsDAO"); addSingleton("#appComPath#youTubeChannelsDAO", "youTubeChannelsDAO"); addConstructorDependency(appBeanName, "youTubeChannelsDAO"); // Load the ptSocialMedia Element GC components addSingleton("#appComPath#facebookPagesGC", "facebookPagesGC"); addConstructorDependency(appBeanName, "facebookPagesGC"); addSingleton("#appComPath#twitterAccountsKeywordsGC", "twitterAccountsKeywordsGC"); addConstructorDependency(appBeanName, "twitterAccountsKeywordsGC"); addSingleton("#appComPath#wordPressBlogsGC", "wordPressBlogsGC"); addConstructorDependency(appBeanName, "wordPressBlogsGC"); addSingleton("#appComPath#youTubeChannelsGC", "youTubeChannelsGC"); addConstructorDependency(appBeanName, "youTubeChannelsGC"); // Inject Dependecies for the DAO into the Service //addConstructorDependency("facebookFeedsService", "facebookFeedsDAO"); // Inject Dependecies for the Service into the DAO //addConstructorDependency("facebookFeedsDAO", "facebookFeedsService"); // RSS Feed Utility Components addSingleton("#appComPath#feedRSS", "feedRSS"); addConstructorDependency(appBeanName, "feedRSS"); // Inject Dependecies for the Feed Services and Feed DAOs into the feedController addConstructorDependency("feedController", "facebookFeedsService"); addConstructorDependency("feedController", "facebookFeedsDAO"); addConstructorDependency("feedController", "twitterFeedsService"); addConstructorDependency("feedController", "twitterFeedsDAO"); addConstructorDependency("feedController", "youTubeFeedsService"); addConstructorDependency("feedController", "youTubeFeedsDAO"); addConstructorDependency("feedController", "wordPressFeedsService"); addConstructorDependency("feedController", "wordPressFeedsDAO"); // Inject Dependecies for the SocialMedia Elements into the feedController addConstructorDependency("feedController", "facebookPagesDAO"); addConstructorDependency("feedController", "twitterAccountsKeywordsDAO"); addConstructorDependency("feedController", "wordPressBlogsDAO"); addConstructorDependency("feedController", "youTubeChannelsDAO"); // Load the ptSocialMedia Cache Controller component addSingleton("#appComPath#socialMediaCacheController", "socialMediaCacheController"); addConstructorDependency(appBeanName, "socialMediaCacheController"); addSingleton("#appComPath#socialMediaCacheDAO", "socialMediaCacheDAO"); addConstructorDependency(appBeanName, "socialMediaCacheDAO"); // Load the ptSocialMedia Scheduled Task DAO component addSingleton("#appComPath#socialMediaScheduledTasksDAO", "socialMediaScheduledTasksDAO"); addConstructorDependency(appBeanName, "socialMediaScheduledTasksDAO"); // Inject Dependecies for the Feed Services and Feed DAOs into the feedController addConstructorDependency("socialMediaCacheController", "socialMediaCacheDAO"); // Inject Dependecies for the Feed Services and Feed DAOs into the feedController addConstructorDependency("socialMediaCacheController", "facebookFeedsService"); //addConstructorDependency("socialMediaCacheController", "facebookFeedsDAO"); addConstructorDependency("socialMediaCacheController", "twitterFeedsService"); //addConstructorDependency("socialMediaCacheController", "twitterFeedsDAO"); addConstructorDependency("socialMediaCacheController", "youTubeFeedsService"); //addConstructorDependency("socialMediaCacheController", "youTubeFeedsDAO"); addConstructorDependency("socialMediaCacheController", "wordPressFeedsService"); //addConstructorDependency("socialMediaCacheController", "wordPressFeedsDAO"); // Inject Dependecies for the SocialMedia Elements into the socialMediaCacheController addConstructorDependency("socialMediaCacheController", "facebookPagesDAO"); addConstructorDependency("socialMediaCacheController", "twitterAccountsKeywordsDAO"); addConstructorDependency("socialMediaCacheController", "wordPressBlogsDAO"); addConstructorDependency("socialMediaCacheController", "youTubeChannelsDAO"); // Inject Dependecies for the socialMediaScheduledTasksDAO into the socialMediaCacheContr addConstructorDependency("socialMediaCacheController", "socialMediaScheduledTasksDAO"); // Inject Dependecies for the socialMediaCacheDAO into the feedController addConstructorDependency("feedController", "socialMediaCacheDAO"); // NOT NEEDED AT THIS TIME - addConstructorDependency("feedController", "socialMediaCacheController"); // Dependecies from ADF 2.0 Lib addConstructorDependency(appBeanName, "json", "json"); addConstructorDependency(appBeanName, "cscontent_2_0", "cscontent"); addConstructorDependency(appBeanName, "cedata_3_0", "cedata"); addConstructorDependency(appBeanName, "csdata_2_0", "csdata"); addConstructorDependency(appBeanName, "data_2_0", "data"); addConstructorDependency(appBeanName, "date_2_0", "date"); addConstructorDependency(appBeanName, "forms_2_0", "forms"); addConstructorDependency(appBeanName, "scheduler_2_0", "scheduler"); addConstructorDependency(appBeanName, "scripts_2_0", "scripts"); addConstructorDependency(appBeanName, "ui_2_0", "ui"); addConstructorDependency(appBeanName, "utils_2_0", "utils");