INT-3372 Add NamedComponent to Remaining MsgSrcs
JIRA: https://jira.spring.io/browse/INT-3372
This commit is contained in:
committed by
Artem Bilan
parent
c4a7d22a35
commit
17c6f8a350
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 the original author or authors.
|
||||
* Copyright 2013-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,6 +24,7 @@ import org.springframework.integration.endpoint.AbstractMessageSource;
|
||||
* {@linkplain #scriptMessageProcessor} for polling endpoints.
|
||||
*
|
||||
* @author Artem Bilan
|
||||
* @author Gary Russell
|
||||
* @since 3.0
|
||||
*/
|
||||
class ScriptExecutingMessageSource extends AbstractMessageSource<Object> {
|
||||
@@ -34,6 +35,11 @@ class ScriptExecutingMessageSource extends AbstractMessageSource<Object> {
|
||||
this.scriptMessageProcessor = scriptMessageProcessor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "inbound-channel-adapter";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object doReceive() {
|
||||
return scriptMessageProcessor.processMessage(null);
|
||||
|
||||
Reference in New Issue
Block a user