1 // Copyright 2008 Google Inc. All rights reserved.
3 package com
.google
.appengine
.api
.mail
;
5 import com
.google
.appengine
.spi
.ServiceFactoryFactory
;
8 * Factory for creating a {@link MailService}.
10 public class MailServiceFactory
{
13 * Returns an implementation of the {@link MailService}.
14 * @return a mail service implementation.
16 public static MailService
getMailService() {
17 return getFactory().getMailService();
20 private static IMailServiceFactory
getFactory() {
21 return ServiceFactoryFactory
.getFactory(IMailServiceFactory
.class);