org.springframework.integration.mail.config
Class MailReceiverFactoryBean
java.lang.Object
org.springframework.integration.mail.config.MailReceiverFactoryBean
- All Implemented Interfaces:
- DisposableBean, FactoryBean<MailReceiver>
public class MailReceiverFactoryBean
- extends Object
- implements FactoryBean<MailReceiver>, DisposableBean
- Since:
- 1.0.3
- Author:
- Mark Fisher, Oleg Zhurakousky
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
MailReceiverFactoryBean
public MailReceiverFactoryBean()
setStoreUri
public void setStoreUri(String storeUri)
setProtocol
public void setProtocol(String protocol)
setSession
public void setSession(javax.mail.Session session)
setJavaMailProperties
public void setJavaMailProperties(Properties javaMailProperties)
setAuthenticator
public void setAuthenticator(javax.mail.Authenticator authenticator)
setShouldDeleteMessages
public void setShouldDeleteMessages(Boolean shouldDeleteMessages)
setMaxFetchSize
public void setMaxFetchSize(int maxFetchSize)
getObject
public MailReceiver getObject()
throws Exception
- Specified by:
getObject
in interface FactoryBean<MailReceiver>
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<MailReceiver>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<MailReceiver>
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface DisposableBean
- Throws:
Exception
isShouldMarkMessagesAsRead
public boolean isShouldMarkMessagesAsRead()
setShouldMarkMessagesAsRead
public void setShouldMarkMessagesAsRead(boolean shouldMarkMessagesAsRead)
Copyright © 2010. All Rights Reserved.