com.liferay.portal.jndi
Class PortalJNDIImpl

java.lang.Object
  extended bycom.liferay.portal.jndi.PortalJNDIImpl
All Implemented Interfaces:
com.liferay.portal.kernel.jndi.PortalJNDI

public class PortalJNDIImpl
extends java.lang.Object
implements com.liferay.portal.kernel.jndi.PortalJNDI

View Source

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String DATA_SOURCE_JNDI
           
static java.lang.String MAIL_SESSION_JNDI
           
 
Constructor Summary
PortalJNDIImpl()
           
 
Method Summary
 javax.sql.DataSource getDataSource()
           
 javax.mail.Session getMailSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_SOURCE_JNDI

public static final java.lang.String DATA_SOURCE_JNDI
See Also:
Constant Field Values

MAIL_SESSION_JNDI

public static final java.lang.String MAIL_SESSION_JNDI
See Also:
Constant Field Values
Constructor Detail

PortalJNDIImpl

public PortalJNDIImpl()
Method Detail

getDataSource

public javax.sql.DataSource getDataSource()
                                   throws javax.naming.NamingException
Specified by:
getDataSource in interface com.liferay.portal.kernel.jndi.PortalJNDI
Throws:
javax.naming.NamingException

getMailSession

public javax.mail.Session getMailSession()
                                  throws javax.naming.NamingException
Specified by:
getMailSession in interface com.liferay.portal.kernel.jndi.PortalJNDI
Throws:
javax.naming.NamingException