org.ow2.easybeans.component.mail
Class MailComponent

java.lang.Object
  extended by org.ow2.easybeans.component.mail.MailComponent
All Implemented Interfaces:
EZBComponent, JavaMailComponent

public class MailComponent
extends java.lang.Object
implements JavaMailComponent

Component for providing mail access to EE components.

Author:
Florent BENOIT

Constructor Summary
MailComponent()
           
 
Method Summary
 java.util.List<MailItf> getAllFactories()
           
 Auth getAuth()
           
 java.util.List<MimePart> getMimeParts()
          Gets the list of mail mimepart factories.
 java.util.List<Session> getSessions()
          Gets the list of mail session factories.
 void init()
          Init method.
This method is called before the start method.
 void setAuth(Auth auth)
          Set the auth.
 void setMimeParts(java.util.List<MimePart> mimePartFactories)
          Sets the list of mail mimepart factories.
 void setSessions(java.util.List<Session> sessionFactories)
          Sets the list of mail session factories.
 void start()
          Start method.
This method is called after the init method.
 void stop()
          Stop method.
This method is called when component needs to be stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailComponent

public MailComponent()
Method Detail

init

public void init()
          throws EZBComponentException
Init method.
This method is called before the start method.

Specified by:
init in interface EZBComponent
Throws:
EZBComponentException - if the initialization has failed.

start

public void start()
           throws EZBComponentException
Start method.
This method is called after the init method.

Specified by:
start in interface EZBComponent
Throws:
EZBComponentException - if the start has failed.

stop

public void stop()
          throws EZBComponentException
Stop method.
This method is called when component needs to be stopped.

Specified by:
stop in interface EZBComponent
Throws:
EZBComponentException - if the stop is failing.

setAuth

public void setAuth(Auth auth)
Set the auth.

Parameters:
auth - the given auth

getAuth

public Auth getAuth()
Returns:
the auth.

getAllFactories

public java.util.List<MailItf> getAllFactories()
Returns:
list of factories.

setSessions

public void setSessions(java.util.List<Session> sessionFactories)
Sets the list of mail session factories.

Parameters:
sessionFactories - the list of factories

getSessions

public java.util.List<Session> getSessions()
Gets the list of mail session factories.

Returns:
the list of mail session factories.

setMimeParts

public void setMimeParts(java.util.List<MimePart> mimePartFactories)
Sets the list of mail mimepart factories.

Parameters:
mimePartFactories - the list of factories

getMimeParts

public java.util.List<MimePart> getMimeParts()
Gets the list of mail mimepart factories.

Returns:
the list of mail mimepart factories.


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