public class MailReceiverFactoryBean extends Object implements FactoryBean<MailReceiver>, DisposableBean, BeanFactoryAware
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
MailReceiverFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
MailReceiver |
getObject() |
Class<?> |
getObjectType() |
Boolean |
isShouldMarkMessagesAsRead() |
boolean |
isSingleton() |
void |
setAuthenticator(Authenticator authenticator) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setJavaMailProperties(Properties javaMailProperties) |
void |
setMaxFetchSize(int maxFetchSize) |
void |
setProtocol(String protocol) |
void |
setSearchTermStrategy(SearchTermStrategy searchTermStrategy) |
void |
setSelectorExpression(Expression selectorExpression) |
void |
setSession(Session session) |
void |
setShouldDeleteMessages(Boolean shouldDeleteMessages) |
void |
setShouldMarkMessagesAsRead(Boolean shouldMarkMessagesAsRead) |
void |
setStoreUri(String storeUri) |
public void setStoreUri(String storeUri)
public void setProtocol(String protocol)
public void setSession(Session session)
public void setJavaMailProperties(Properties javaMailProperties)
public void setAuthenticator(Authenticator authenticator)
public void setShouldDeleteMessages(Boolean shouldDeleteMessages)
public void setShouldMarkMessagesAsRead(Boolean shouldMarkMessagesAsRead)
public Boolean isShouldMarkMessagesAsRead()
public void setMaxFetchSize(int maxFetchSize)
public void setSelectorExpression(Expression selectorExpression)
public void setSearchTermStrategy(SearchTermStrategy searchTermStrategy)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public MailReceiver getObject() throws Exception
getObject
in interface FactoryBean<MailReceiver>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<MailReceiver>
public boolean isSingleton()
isSingleton
in interface FactoryBean<MailReceiver>
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception