diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/config/FileWritingMessageHandlerFactoryBean.java b/spring-integration-file/src/main/java/org/springframework/integration/file/config/FileWritingMessageHandlerFactoryBean.java index 489bc477b2..fbad06f4ee 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/config/FileWritingMessageHandlerFactoryBean.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/config/FileWritingMessageHandlerFactoryBean.java @@ -20,8 +20,6 @@ import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactoryAware; import org.springframework.beans.factory.FactoryBean; -import org.springframework.context.ResourceLoaderAware; -import org.springframework.core.io.ResourceLoader; import org.springframework.integration.core.ChannelResolver; import org.springframework.integration.core.MessageChannel; import org.springframework.integration.file.FileNameGenerator; @@ -31,15 +29,14 @@ import java.io.File; /** * @author Mark Fisher + * @author Iwein Fuld * @since 1.0.3 */ public class FileWritingMessageHandlerFactoryBean implements FactoryBean, - BeanFactoryAware, ResourceLoaderAware { + BeanFactoryAware { private volatile FileWritingMessageHandler handler; - private volatile ResourceLoader resourceLoader; - private volatile BeanFactory beanFactory; private volatile File directory; @@ -64,11 +61,6 @@ public class FileWritingMessageHandlerFactoryBean implements FactoryBean