org.objectweb.jonas.mail.factory.JavaMailSessionFactory Class Reference

List of all members.

Public Member Functions

Object getObjectInstance (Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception

Static Protected Attributes

final String FACTORY_TYPE = "javax.mail.Session"

Detailed Description

This class provides an implementation of a mail session factory for sending mail.
Author:
Florent Benoit

Ludovic Bert

Definition at line 60 of file JavaMailSessionFactory.java.


Member Function Documentation

Object org.objectweb.jonas.mail.factory.JavaMailSessionFactory.getObjectInstance Object  obj,
Name  name,
Context  nameCtx,
Hashtable  environment
throws Exception
 

Creates a javax.mail.Session object using the location or reference information specified.

Parameters:
obj the possibly null object containing location or reference information that can be used in creating an object.
name the name of this object relative to nameCtx, or null if no name is specified.
nameCtx the context relative to which the name parameter is specified, or null if name is relative to the default initial context.
environment the possibly null environment that is used in creating the object.
Returns:
a newly created javax.mail.Session object with the specific configuration; null if an object cannot be created.
Exceptions:
Exception if this object factory encountered an exception while attempting to create an object, and no other object factories are to be tried.

Definition at line 90 of file JavaMailSessionFactory.java.

References org.objectweb.jonas.mail.factory.JavaMailSessionFactory.FACTORY_TYPE.


Member Data Documentation

final String org.objectweb.jonas.mail.factory.JavaMailSessionFactory.FACTORY_TYPE = "javax.mail.Session" [static, protected]
 

The Java type for which this factory knows how to create objects.

Definition at line 65 of file JavaMailSessionFactory.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailSessionFactory.getObjectInstance().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:08 2005 for JOnAS by  doxygen 1.3.9.1