javax.naming.spi.ObjectFactorypublic class MailSessionReference
extends javax.naming.Reference
implements javax.naming.spi.ObjectFactory
| Modifier and Type | Class | Description |
|---|---|---|
static class |
MailSessionReference.PasswordAuthenticator |
| Constructor | Description |
|---|---|
MailSessionReference() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
getObjectInstance(java.lang.Object ref,
javax.naming.Name arg1,
javax.naming.Context arg2,
java.util.Hashtable arg3) |
Create a javax.mail.Session instance based on the information passed in the Reference
|
void |
setPassword(java.lang.String password) |
|
void |
setProperties(java.util.Properties properties) |
|
void |
setUser(java.lang.String user) |
public java.lang.Object getObjectInstance(java.lang.Object ref,
javax.naming.Name arg1,
javax.naming.Context arg2,
java.util.Hashtable arg3)
throws java.lang.Exception
getObjectInstance in interface javax.naming.spi.ObjectFactoryref - the Referencearg1 - not usedarg2 - not usedarg3 - not usedjava.lang.Exception - if unable to get object instanceObjectFactory.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)public void setUser(java.lang.String user)
public void setPassword(java.lang.String password)
public void setProperties(java.util.Properties properties)
Copyright © 1995–2017 Webtide. All rights reserved.