// Path: src/java/com/idega/block/email/client/business/ApplicationEmailEvent.java
// public class ApplicationEmailEvent extends ApplicationEvent {
//     
// 	private static final long serialVersionUID = -1382336725088284318L;
//    
// 	private Map<String, FoundMessagesInfo> messages;
// 	private MessageParameters parameters;
// 	private EmailParams emailParams;
//     
//     public ApplicationEmailEvent(Object source) {
//     	super(source);
//     }
//     
//     public Map<String, FoundMessagesInfo> getMessages() {
//         return messages;
//     }
//     
//     public void setMessages(Map<String, FoundMessagesInfo> messages) {
//         this.messages = messages;
//     }
// 
// 	public MessageParameters getParameters() {
// 		return parameters;
// 	}
// 
// 	public void setParameters(MessageParameters parameters) {
// 		this.parameters = parameters;
// 	}
// 
// 	public EmailParams getEmailParams() {
// 		return emailParams;
// 	}
// 
// 	public void setEmailParams(EmailParams emailParams) {
// 		this.emailParams = emailParams;
// 	}
// 
// }


import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import com.idega.block.email.client.business.ApplicationEmailEvent;
package com.idega.block.email.mailing.list.business;



@Service
@Scope(BeanDefinition.SCOPE_SINGLETON)
public class MailingListMessagesListener implements ApplicationListener {

	public void onApplicationEvent(ApplicationEvent event) {
		if (!(event instanceof ApplicationEmailEvent)) {
			return;
		}

// Path: src/java/com/idega/block/email/client/business/ApplicationEmailEvent.java
// public class ApplicationEmailEvent extends ApplicationEvent {
//     
// 	private static final long serialVersionUID = -1382336725088284318L;
//    
// 	private Map<String, FoundMessagesInfo> messages;
// 	private MessageParameters parameters;
// 	private EmailParams emailParams;
//     
//     public ApplicationEmailEvent(Object source) {
//     	super(source);
//     }
//     
//     public Map<String, FoundMessagesInfo> getMessages() {
//         return messages;
//     }
//     
//     public void setMessages(Map<String, FoundMessagesInfo> messages) {
//         this.messages = messages;
//     }
// 
// 	public MessageParameters getParameters() {
// 		return parameters;
// 	}
// 
// 	public void setParameters(MessageParameters parameters) {
// 		this.parameters = parameters;
// 	}
// 
// 	public EmailParams getEmailParams() {
// 		return emailParams;
// 	}
// 
// 	public void setEmailParams(EmailParams emailParams) {
// 		this.emailParams = emailParams;
// 	}
// 
// }


// Path: src/java/com/idega/block/email/mailing/list/business/MailingListMessagesListener.java
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import com.idega.block.email.client.business.ApplicationEmailEvent;

package com.idega.block.email.mailing.list.business;



@Service
@Scope(BeanDefinition.SCOPE_SINGLETON)
public class MailingListMessagesListener implements ApplicationListener {

	public void onApplicationEvent(ApplicationEvent event) {
		if (!(event instanceof ApplicationEmailEvent)) {
			return;
		}

		ApplicationEmailEvent emailEvent = (ApplicationEmailEvent) event;