Coverage Report - net.wotonomy.web.WOMailDelivery
 
Classes in this File Line Coverage Branch Coverage Complexity
WOMailDelivery
0% 
0% 
1.2
 
 1  
 /*
 2  
 Wotonomy: OpenStep design patterns for pure Java applications.
 3  
 Copyright (C) 2000 Blacksmith, Inc.
 4  
 
 5  
 This library is free software; you can redistribute it and/or
 6  
 modify it under the terms of the GNU Lesser General Public
 7  
 License as published by the Free Software Foundation; either
 8  
 version 2.1 of the License, or (at your option) any later version.
 9  
 
 10  
 This library is distributed in the hope that it will be useful,
 11  
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 13  
 Lesser General Public License for more details.
 14  
 
 15  
 You should have received a copy of the GNU Lesser General Public
 16  
 License along with this library; if not, see http://www.gnu.org
 17  
 */
 18  
 
 19  
 package net.wotonomy.web;
 20  
 
 21  
 import java.util.List;
 22  
 
 23  
 /**
 24  
 * A pure java implementation of WOMailDelivery.
 25  
 *
 26  
 * @author michael@mpowers.net
 27  
 * @author $Author: cgruber $
 28  
 * @version $Revision: 905 $
 29  
 */
 30  
 public abstract class WOMailDelivery
 31  
 {
 32  
         private static WOMailDelivery sharedInstance;
 33  
         
 34  0
     protected WOMailDelivery ()
 35  0
     {
 36  0
     }
 37  
 
 38  
     public static WOMailDelivery sharedInstance ()
 39  
     {
 40  0
             if ( sharedInstance == null )
 41  
             {
 42  
 //                    sharedInstance = new WOMailDelivery();
 43  
             }
 44  0
             return sharedInstance;
 45  
     }
 46  
     
 47  
     public abstract String composePlainTextEmail (
 48  
             String aSender, List aToList, List aCcList, 
 49  
             String aSubject, String aMessage, boolean sendImmediately );
 50  
     public abstract String composeComponentEmail (            
 51  
             String aSender, List aToList, List aCcList, 
 52  
             String aSubject, WOComponent aComponent, boolean sendImmediately );
 53  
     public abstract void sendEmail (String aMailMessage);
 54  
 }