populating component metadata with type

This commit is contained in:
Mark Fisher
2010-03-11 20:52:52 +00:00
parent 3d440e833f
commit ddf163589f

View File

@@ -19,6 +19,7 @@ package org.springframework.integration.gateway;
import org.springframework.integration.core.Message;
import org.springframework.integration.handler.AbstractReplyProducingMessageHandler;
import org.springframework.integration.message.MessageHandler;
import org.springframework.integration.support.ComponentMetadata;
import org.springframework.util.Assert;
/**
@@ -29,9 +30,6 @@ import org.springframework.util.Assert;
*/
public class GatewayInvokingMessageHandler extends AbstractReplyProducingMessageHandler {
public static final String COMPONENT_TYPE_LABEL = "gateway";
private GenericSendAndRecieveGateway gateway;
/**
@@ -42,6 +40,11 @@ public class GatewayInvokingMessageHandler extends AbstractReplyProducingMessage
this.gateway = gateway;
}
@Override
protected void populateComponentMetadata(ComponentMetadata metadata) {
metadata.setComponentType("gateway");
}
/**
* Will simply delegate to the original gateway
*/