public static void main(String[] args) {
log.info("Starting notification system...");
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/notification.xml");
ChannelResolver channelResolver = new BeanFactoryChannelResolver(context);
NotificationUtils notificationUtils = new NotificationUtils();
File propsPath = new File(".", "notification.properties");
Properties props = new Properties();
try {
props.load(new FileReader(propsPath));
CompositeFileListFilter statusFilter = (CompositeFileListFilter) context.getBean("statusFilter");
Map<String, Set<File>> allDataPaths = new HashMap<String, Set<File>>();
for (String platformType : PlatformType.getKeys()) {
platformType = platformType.toLowerCase();
if (props.containsKey(platformType + ".splitterBatchSize")) {
notificationUtils.setSplitterBatchSize(Integer.parseInt(props.getProperty(platformType + ".splitterBatchSize")));
}
if (props.containsKey(platformType + ".dataPaths")) {
log.debug("Resolving " + platformType + ".dataPaths ...");
String dataPaths = props.getProperty(platformType + ".dataPaths");