comments, formatting, etc.
This commit is contained in:
@@ -50,6 +50,7 @@ public class PublisherAnnotationPostProcessor implements BeanPostProcessor, Bean
|
||||
|
||||
|
||||
public void setBeanClassLoader(ClassLoader beanClassLoader) {
|
||||
Assert.notNull(beanClassLoader, "beanClassLoader must not be null");
|
||||
this.beanClassLoader = beanClassLoader;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ import java.lang.reflect.Method;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import org.springframework.aop.framework.Advised;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.config.BeanPostProcessor;
|
||||
|
||||
@@ -72,7 +72,7 @@ public abstract class AbstractChannelAdapter implements MessageChannel, Initiali
|
||||
return this.sendObject(source);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new MessageHandlingException("Failed to send message to target", e);
|
||||
throw new MessageHandlingException("failed to send message", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ import java.lang.reflect.Method;
|
||||
import org.springframework.integration.handler.MessageHandler;
|
||||
|
||||
/**
|
||||
* A strategy for programmatically creating a {@link MessageHandler} based on
|
||||
* metadata provided by an annotation.
|
||||
*
|
||||
* @author Mark Fisher
|
||||
*/
|
||||
public interface AnnotationHandlerCreator {
|
||||
|
||||
@@ -25,6 +25,11 @@ import org.springframework.integration.endpoint.MessageHandlerAdapter;
|
||||
import org.springframework.integration.handler.MessageHandler;
|
||||
|
||||
/**
|
||||
* Default implementation of the handler creator strategy that creates a
|
||||
* {@link MessageHandlerAdapter} for the provided object and method. This
|
||||
* version does not even consider the annotation itself. It does however
|
||||
* respect an {@link Order} annotation if present.
|
||||
*
|
||||
* @author Mark Fisher
|
||||
*/
|
||||
public class DefaultAnnotationHandlerCreator implements AnnotationHandlerCreator {
|
||||
|
||||
Reference in New Issue
Block a user