View Javadoc
1   package org.nhindirect.gateway.springconfig;
2   
3   import org.nhindirect.gateway.smtp.dsn.DSNCreator;
4   import org.nhindirect.gateway.smtp.dsn.impl.FailedDeliveryDSNCreator;
5   import org.nhindirect.gateway.smtp.dsn.impl.RejectedRecipientDSNCreator;
6   import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
7   import org.springframework.context.annotation.Bean;
8   import org.springframework.context.annotation.Configuration;
9   
10  @Configuration
11  public class DSNGeneratorConfig
12  {
13  	@Bean
14  	@ConditionalOnMissingBean
15  	public DSNCreator rejectedRecipientDSNCreator()
16  	{
17  		return new RejectedRecipientDSNCreator(null);
18  	}
19  	
20  	@Bean
21  	@ConditionalOnMissingBean
22  	public DSNCreator failedDeliveryDSNCreator()
23  	{
24  		return new FailedDeliveryDSNCreator(null);
25  	}	
26  }