INT-937 refactoring MessageHistory, added ComponentMetadata

This commit is contained in:
Mark Fisher
2010-03-05 00:33:55 +00:00
parent b0c38e8e77
commit 30bcf6e9c7
13 changed files with 273 additions and 158 deletions

View File

@@ -32,9 +32,9 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.integration.core.Message;
import org.springframework.integration.core.MessageHistoryEvent;
import org.springframework.integration.endpoint.MessageProducerSupport;
import org.springframework.integration.message.MessageBuilder;
import org.springframework.integration.support.ComponentMetadata;
import org.springframework.util.Assert;
/**
@@ -83,9 +83,9 @@ public class NotificationListeningAdapter extends MessageProducerSupport impleme
}
@Override
protected void postProcessHistoryEvent(MessageHistoryEvent event) {
event.setComponentType("notification-listener");
event.setProperty("transport", "jmx");
protected void populateComponentMetadata(ComponentMetadata metadata) {
metadata.setComponentType("notification-listener");
metadata.setAttribute("transport", "jmx");
}
@Override