| java.lang.Object org.objectweb.jonas.mail.factory.JavaMailSessionFactory
JavaMailSessionFactory | public class JavaMailSessionFactory implements ObjectFactory(Code) | | This class provides an implementation of a mail session factory for
sending mail.
author: Florent Benoit author: Ludovic Bert |
Field Summary | |
final protected static String | FACTORY_TYPE The Java type for which this factory knows how to create objects. |
Method Summary | |
public Object | getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) Creates a javax.mail.Session object using the location or reference
information specified.
Parameters: obj - the possibly null object containing location or referenceinformation that can be used in creating an object. Parameters: name - the name of this object relative to nameCtx, or null if noname is specified. Parameters: nameCtx - the context relative to which the name parameter isspecified, or null if name is relative to the default initial context. Parameters: environment - the possibly null environment that is used increating the object. |
FACTORY_TYPE | final protected static String FACTORY_TYPE(Code) | | The Java type for which this factory knows how to create objects.
|
getObjectInstance | public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception(Code) | | Creates a javax.mail.Session object using the location or reference
information specified.
Parameters: obj - the possibly null object containing location or referenceinformation that can be used in creating an object. Parameters: name - the name of this object relative to nameCtx, or null if noname is specified. Parameters: nameCtx - the context relative to which the name parameter isspecified, or null if name is relative to the default initial context. Parameters: environment - the possibly null environment that is used increating the object. a newly created javax.mail.Session object with the specificconfiguration; null if an object cannot be created. throws: Exception - if this object factory encountered an exceptionwhile attempting to create an object, and no other object factoriesare to be tried. |
|
|