org.kuali.rice.core.mail
Class MailSenderFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by org.kuali.rice.core.mail.MailSenderFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class MailSenderFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean

A factory bean which reads mail-related properties from the Configuration system and generates a Spring Java Mail Sender instance for use by services that send e-mail.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
private  class MailSenderFactoryBean.SimpleAuthenticator
           
 
Field Summary
private static String HOST_PROPERTY
           
protected  org.apache.log4j.Logger LOG
           
private static String MAIL_PREFIX
           
private  javax.mail.Session mailSession
           
private static String PASSWORD_PROPERTY
           
private static String PORT_PROPERTY
           
private static String USERNAME_PROPERTY
           
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
MailSenderFactoryBean()
           
 
Method Summary
protected  Object createInstance()
           
 Class getObjectType()
           
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected final org.apache.log4j.Logger LOG

MAIL_PREFIX

private static final String MAIL_PREFIX
See Also:
Constant Field Values

USERNAME_PROPERTY

private static final String USERNAME_PROPERTY
See Also:
Constant Field Values

PASSWORD_PROPERTY

private static final String PASSWORD_PROPERTY
See Also:
Constant Field Values

HOST_PROPERTY

private static final String HOST_PROPERTY
See Also:
Constant Field Values

PORT_PROPERTY

private static final String PORT_PROPERTY
See Also:
Constant Field Values

mailSession

private javax.mail.Session mailSession
Constructor Detail

MailSenderFactoryBean

public MailSenderFactoryBean()
Method Detail

createInstance

protected Object createInstance()
                         throws Exception
Specified by:
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
Specified by:
getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.