Interface MailServerLoader

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface MailServerLoader
    Interface which loads MailServer.
    • Method Detail

      • load

        MailServer load​(String realm)
                 throws IllegalStateException
        Load the mail server implementation based on the class name and realm.
        Parameters:
        realm - Non null realm to associate with the mail server.
        Returns:
        A mail server implementation.
        Throws:
        IllegalStateException - If there was any error resolving the class.