@Override public void afterPropertiesSet() throws Exception { if (taskExecutor == null) { taskExecutor = createDefaultTaskExecutor(); } super.afterPropertiesSet(); }
@Override public void afterPropertiesSet() throws Exception { Assert.notNull(storeUri, "Property 'storeUri' is required"); Assert.notNull(transportUri, "Property 'transportUri' is required"); if (monitoringStrategy == null) { String protocol = storeUri.getProtocol(); if ("pop3".equals(protocol)) { monitoringStrategy = new Pop3PollingMonitoringStrategy(); } else if ("imap".equals(protocol)) { monitoringStrategy = new PollingMonitoringStrategy(); } else { throw new IllegalArgumentException("Cannot determine monitoring strategy for \"" + protocol + "\". " + "Set the 'monitoringStrategy' explicitly."); } } super.afterPropertiesSet(); }
@Override public void afterPropertiesSet() throws Exception { Assert.notNull(storeUri, "Property 'storeUri' is required"); Assert.notNull(transportUri, "Property 'transportUri' is required"); if (monitoringStrategy == null) { String protocol = storeUri.getProtocol(); if ("pop3".equals(protocol)) { monitoringStrategy = new Pop3PollingMonitoringStrategy(); } else if ("imap".equals(protocol)) { monitoringStrategy = new PollingMonitoringStrategy(); } else { throw new IllegalArgumentException("Cannot determine monitoring strategy for \"" + protocol + "\". " + "Set the 'monitoringStrategy' explicitly."); } } super.afterPropertiesSet(); }
@Override public void afterPropertiesSet() throws Exception { if (taskExecutor == null) { taskExecutor = createDefaultTaskExecutor(); } super.afterPropertiesSet(); }
@Override public void afterPropertiesSet() throws Exception { Assert.notNull(storeUri, "Property 'storeUri' is required"); Assert.notNull(transportUri, "Property 'transportUri' is required"); if (monitoringStrategy == null) { String protocol = storeUri.getProtocol(); if ("pop3".equals(protocol)) { monitoringStrategy = new Pop3PollingMonitoringStrategy(); } else if ("imap".equals(protocol)) { monitoringStrategy = new PollingMonitoringStrategy(); } else { throw new IllegalArgumentException("Cannot determine monitoring strategy for \"" + protocol + "\". " + "Set the 'monitoringStrategy' explicitly."); } } super.afterPropertiesSet(); }
@Override public void afterPropertiesSet() throws Exception { if (taskExecutor == null) { taskExecutor = createDefaultTaskExecutor(); } super.afterPropertiesSet(); }