Inheritance diagram for org.objectweb.jonas.mail.MailServiceImpl:
Public Member Functions | |
void | recreateJavaMailFactory (JavaMail factory) throws MailServiceException |
void | renameJavaMailFactory (String oldName, JavaMail factory) throws MailServiceException |
void | createMailFactory (String factoryName, Properties props) throws MailServiceException |
void | createMailFactoryMBean (String name, Properties props, Boolean loadFromFile) throws MailServiceException |
void | unbindMailFactories () throws MailServiceException |
void | unbindMailFactoryMBean (String factoryName) throws MailServiceException |
String | getFactoryName (String jndiName) |
Integer | getCurrentNumberOfMailFactories () |
Integer | getCurrentNumberOfSessionMailFactories () |
Integer | getCurrentNumberOfMimeMailFactories () |
Properties | getMailFactoryPropertiesFile (String configFile) throws Exception |
List | getMailFactoryPropertiesFiles () throws Exception |
List | getMimePartMailFactoryPropertiesFiles () throws Exception |
List | getSessionMailFactoryPropertiesFiles () throws Exception |
Static Public Attributes | |
final String | PROPERTY_NAME = "mail.factory.name" |
final String | PROPERTY_TYPE = "mail.factory.type" |
final String | FACTORIES = "jonas.service.mail.factories" |
final String | CLASS = "jonas.service.mail.class" |
Protected Member Functions | |
void | doInit (Context ctx) throws ServiceException |
void | doStart () throws ServiceException |
void | doStop () throws ServiceException |
Ludovic Bert Contributor(s): Adriana Danes :
Definition at line 75 of file MailServiceImpl.java.
|
Create a mail factory with the specified properties and register it into the registry.
Implements org.objectweb.jonas.mail.MailService. Definition at line 338 of file MailServiceImpl.java. References org.objectweb.jonas.mail.MailServiceImpl.PROPERTY_NAME, and org.objectweb.jonas.mail.MailServiceImpl.PROPERTY_TYPE. Referenced by org.objectweb.jonas.mail.MailServiceImpl.createMailFactoryMBean(), and org.objectweb.jonas.mail.MailServiceImpl.doStart(). |
|
Create a mail factory with the specified properties and register it into the registry.
Implements org.objectweb.jonas.mail.MailServiceImplMBean. Definition at line 460 of file MailServiceImpl.java. References org.objectweb.jonas.mail.MailServiceImpl.createMailFactory(). |
Here is the call graph for this function:
|
Init the Mail service.
Definition at line 168 of file MailServiceImpl.java. References org.objectweb.jonas.mail.MailServiceImpl.FACTORIES. |
|
Start the Mail Service.
Definition at line 222 of file MailServiceImpl.java. References org.objectweb.jonas.mail.MailServiceImpl.createMailFactory(), and org.objectweb.jonas.common.JProp.getConfigFileEnv(). |
Here is the call graph for this function:
|
Stop the Mail service.
Definition at line 257 of file MailServiceImpl.java. References org.objectweb.jonas.mail.MailServiceImpl.unbindMailFactories(). |
Here is the call graph for this function:
|
Gets the total number of mail factories available in JOnAS
Implements org.objectweb.jonas.mail.MailServiceImplMBean. Definition at line 573 of file MailServiceImpl.java. |
|
Gets the integer Number of internet
Implements org.objectweb.jonas.mail.MailServiceImplMBean. Definition at line 589 of file MailServiceImpl.java. |
|
Gets the number of Session mail factories available in JOnAS
Implements org.objectweb.jonas.mail.MailServiceImplMBean. Definition at line 581 of file MailServiceImpl.java. |
|
Gets the factory name given the jndi name. Null is returned if the given name is not binded.
Definition at line 565 of file MailServiceImpl.java. Referenced by org.objectweb.jonas.container.EJB.getAllMailFactoryMName(), and org.objectweb.jonas.container.EJB.getAllMailFactorySName(). |
|
Gets the mail factory configuration properties from a local file
Implements org.objectweb.jonas.mail.MailServiceImplMBean. Definition at line 599 of file MailServiceImpl.java. |
|
MBean method:
Implements org.objectweb.jonas.mail.MailServiceImplMBean. Definition at line 616 of file MailServiceImpl.java. |
|
MBean method:
Implements org.objectweb.jonas.mail.MailServiceImplMBean. Definition at line 623 of file MailServiceImpl.java. |
|
MBean method:
Implements org.objectweb.jonas.mail.MailServiceImplMBean. Definition at line 630 of file MailServiceImpl.java. |
|
This method is used when a Mail Factory configuration is modified via jonasAdmin. In this case, the updated JavaMail object (JavaMailSession or JavaMailMimePartDS object) must be rebound in JNDI
Implements org.objectweb.jonas.mail.MailService. Definition at line 286 of file MailServiceImpl.java. |
|
This method is used when a particular Mail Factory configuration operation is done via jonasAdmin : when the JNDI name of this resource is modified. In this case, the initial JavaMail object (JavaMailSession or JavaMailMimePartDS object) must be unbound and the updated JavaMail object must be reloaded. Also, the Mail Service private data structures must be updated.
Implements org.objectweb.jonas.mail.MailService. Definition at line 308 of file MailServiceImpl.java. |
|
Unregister all the binding factories on the server and in JMX Server.
Implements org.objectweb.jonas.mail.MailService. Definition at line 487 of file MailServiceImpl.java. References org.objectweb.jonas.mail.MailServiceImpl.unbindMailFactoryMBean(). Referenced by org.objectweb.jonas.mail.MailServiceImpl.doStop(). |
Here is the call graph for this function:
|
Unregister the factory with the given name.
Implements org.objectweb.jonas.mail.MailServiceImplMBean. Definition at line 503 of file MailServiceImpl.java. References org.objectweb.jonas.mail.factory.JavaMail.getName(). Referenced by org.objectweb.jonas.mail.MailServiceImpl.unbindMailFactories(). |
Here is the call graph for this function:
|
Mail service configuration parameters (class) Definition at line 161 of file MailServiceImpl.java. |
|
Mail service configuration parameters (factories) Definition at line 156 of file MailServiceImpl.java. Referenced by org.objectweb.jonas.mail.MailServiceImpl.doInit(). |
|
JOnAS-specific properties (name) Definition at line 143 of file MailServiceImpl.java. Referenced by org.objectweb.jonas.mail.MailServiceImpl.createMailFactory(). |
|
JOnAS-specific properties (type) Definition at line 148 of file MailServiceImpl.java. Referenced by org.objectweb.jonas.mail.MailServiceImpl.createMailFactory(). |