Permalink
Browse files

Closes #1089. The Mailer trait is not usable outside the net.liftweb.…

…util package
  • Loading branch information...
1 parent f40deb7 commit 1c861f6b3b1ac321823995111d163c178c42ddac @dpp dpp committed Aug 23, 2011
@@ -28,13 +28,14 @@ import actor._
/**
* Utilities for sending email.
*/
-object Mailer extends MailerImpl
+object Mailer extends Mailer
/**
- * This trait implmenets the mail sending
+ * This trait implmenets the mail sending. You can create subclasses of this class/trait and
+ * implement your own mailer functionality
*/
-protected trait MailerImpl extends SimpleInjector {
- private val logger = Logger(classOf[MailerImpl])
+trait Mailer extends SimpleInjector {
+ private val logger = Logger(classOf[Mailer])
sealed abstract class MailTypes
/**
@@ -280,7 +281,7 @@ protected trait MailerImpl extends SimpleInjector {
message.setContent(multiPart);
}
- MailerImpl.this.performTransportSend(message)
+ Mailer.this.performTransportSend(message)
}
protected lazy val msgSender = new MsgSender
@@ -99,7 +99,7 @@ object MailerSpec extends Specification("Mailer Specification") {
}
}
-object MyMailer extends MailerImpl {
+object MyMailer extends Mailer {
@volatile var lastMessage: Box[MimeMessage] = Empty
testModeSend.default.set((msg: MimeMessage) => {

0 comments on commit 1c861f6

Please sign in to comment.