public MailFactoryImpl(String[] args) { this.config = ConfigFactory.getConfig(args[0], MailConfig.class); } @Override public Mail newMail(String mailId) { return new MailImpl(this, mailId); } } public class MailImpl implements Mail { @Override public void send() throws SystemException { var mail = render(getMailRenderer()); getMailSender().sendMail(mail); } } JavaMail MailFactoryImpl MailImpl
ms SnapStart 12MB 512MB FW 300 ms 1,500 ms SnapStart 0.8MB 512MB Python 30 ms 9,000 ms SnapStart 34MB 512MB SpringBoot ※ SnapStart DiRegistry DiRegistry