| java.lang.Object org.objectweb.jonas.mail.factory.JavaMailMimePartDSFactory
JavaMailMimePartDSFactory | public class JavaMailMimePartDSFactory implements ObjectFactory(Code) | | This class provides an implementation of a mime part data source factory
for sending mail.
author: Ludovic Bert author: Florent Benoit |
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.MimePartDataSource 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.MimePartDataSource 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.internet.MimePartDataSource object with thespecific configuration; 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 factories areto be tried. |
|
|