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

java.lang.Object
  extended by org.ow2.easybeans.component.mail.factory.AbsJavaMailFactory
      extended by org.ow2.easybeans.component.mail.factory.JavaMailMimePartDataSourceFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

public class JavaMailMimePartDataSourceFactory
extends AbsJavaMailFactory
implements javax.naming.spi.ObjectFactory

JNDI factory for session factory.

Author:
Florent BENOIT

Field Summary
static java.lang.String BCC_RECIPIENTS
          BCC recipients.
static java.lang.String CC_RECIPIENTS
          CC recipients.
static java.lang.String FACTORY_TYPE
          Type of object created by this factory.
static java.lang.String SUBJECT
          Subject.
static java.lang.String TO_RECIPIENTS
          TO recipients.
 
Fields inherited from class org.ow2.easybeans.component.mail.factory.AbsJavaMailFactory
AUTHENTICATION_PASSWORD, AUTHENTICATION_USERNAME, MAIL_PROPERTIES
 
Constructor Summary
JavaMailMimePartDataSourceFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment)
          Creates an object using the location or reference information specified.
 
Methods inherited from class org.ow2.easybeans.component.mail.factory.AbsJavaMailFactory
getAuthenticator, getObject, getSessionProperties, getString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY_TYPE

public static final java.lang.String FACTORY_TYPE
Type of object created by this factory.

See Also:
Constant Field Values

TO_RECIPIENTS

public static final java.lang.String TO_RECIPIENTS
TO recipients.

See Also:
Constant Field Values

CC_RECIPIENTS

public static final java.lang.String CC_RECIPIENTS
CC recipients.

See Also:
Constant Field Values

BCC_RECIPIENTS

public static final java.lang.String BCC_RECIPIENTS
BCC recipients.

See Also:
Constant Field Values

SUBJECT

public static final java.lang.String SUBJECT
Subject.

See Also:
Constant Field Values
Constructor Detail

JavaMailMimePartDataSourceFactory

public JavaMailMimePartDataSourceFactory()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable<?,?> environment)
                                   throws java.lang.Exception
Creates an object using the location or reference information specified.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
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:
The object created; null if an object cannot be created.
Throws:
java.lang.Exception - if this object factory encountered an exception


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