comments, formatting, etc.

This commit is contained in:
Mark Fisher
2007-12-15 16:00:36 +00:00
parent e4780e57ca
commit 96d13da7f3
5 changed files with 11 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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);
}
}

View File

@@ -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 {

View File

@@ -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 {