Package com.uphea

Source Code of com.uphea.EmailRunner

package com.uphea;

import com.uphea.domain.User;
import com.uphea.service.EmailBuilder;

public class EmailRunner extends AppWebRunner {

  public static void main(String[] args) {
    new EmailRunner().runWebApp();
  }

  @Override
  public void run() {
    EmailBuilder emailBuilder = petite.getBean(EmailBuilder.class);

    User user = createUser();

    emailBuilder.createWelcomeMessage(user);
  }

  User createUser() {
    User user = new User();
    user.setEmail("igor.spasic@gmail.com");
    user.setName("Igor Spasic");
    return user;
  }

}
TOP

Related Classes of com.uphea.EmailRunner

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.