org.ow2.easybeans.component.mail.factory
Class JavaMailSessionRef

java.lang.Object
  extended by org.ow2.easybeans.component.mail.factory.AbsJavaMailRef
      extended by org.ow2.easybeans.component.mail.factory.JavaMailSessionRef
All Implemented Interfaces:
javax.naming.Referenceable

public class JavaMailSessionRef
extends AbsJavaMailRef

Defines a referenceable object for Session Mail object.

Author:
Florent BENOIT

Constructor Summary
JavaMailSessionRef()
          Build a new javax.mail.Session reference.
 
Method Summary
 javax.naming.Reference getReference()
          Retrieves the Reference of this object.
 java.lang.String getType()
          Return the type of the factory.
 
Methods inherited from class org.ow2.easybeans.component.mail.factory.AbsJavaMailRef
getAuthName, getAuthPass, getJNDIName, getName, getProperties, putObject, setAuthName, setAuthPass, setJNDIName, setName, setProperties, updateRefAddr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMailSessionRef

public JavaMailSessionRef()
Build a new javax.mail.Session reference.

Method Detail

getType

public java.lang.String getType()
Return the type of the factory.

Specified by:
getType in class AbsJavaMailRef
Returns:
the type of the mail factory

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Retrieves the Reference of this object.

Specified by:
getReference in interface javax.naming.Referenceable
Specified by:
getReference in class AbsJavaMailRef
Returns:
The non-null Reference of this object.
Throws:
javax.naming.NamingException - If a naming exception was encountered while retrieving the reference.


Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.