Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / mail / MailServiceFactory.java
blob834cd46836f66187177727f107d0769097ccd534
1 // Copyright 2008 Google Inc. All rights reserved.
3 package com.google.appengine.api.mail;
5 import com.google.appengine.spi.ServiceFactoryFactory;
7 /**
8 * Factory for creating a {@link MailService}.
9 */
10 public class MailServiceFactory {
12 /**
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);