org.springframework.integration.mail.config
Class MailReceiverFactoryBean
java.lang.Object
org.springframework.integration.mail.config.MailReceiverFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<MailReceiver>
public class MailReceiverFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean<MailReceiver>, org.springframework.beans.factory.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(java.lang.String storeUri)
setProtocol
public void setProtocol(java.lang.String protocol)
setSession
public void setSession(javax.mail.Session session)
setJavaMailProperties
public void setJavaMailProperties(java.util.Properties javaMailProperties)
setAuthenticator
public void setAuthenticator(javax.mail.Authenticator authenticator)
setShouldDeleteMessages
public void setShouldDeleteMessages(java.lang.Boolean shouldDeleteMessages)
setShouldMarkMessagesAsRead
public void setShouldMarkMessagesAsRead(java.lang.Boolean shouldMarkMessagesAsRead)
isShouldMarkMessagesAsRead
public java.lang.Boolean isShouldMarkMessagesAsRead()
setMaxFetchSize
public void setMaxFetchSize(int maxFetchSize)
setSelectorExpression
public void setSelectorExpression(org.springframework.expression.Expression selectorExpression)
setSearchTermStrategy
public void setSearchTermStrategy(SearchTermStrategy searchTermStrategy)
getObject
public MailReceiver getObject()
throws java.lang.Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean<MailReceiver>
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<MailReceiver>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean<MailReceiver>
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception