Interface MailServerFactory<T extends MailServer>

  • Type Parameters:
    T - the type of MailServer to create

    @SupportedAll
    public interface MailServerFactory<T extends MailServer>
    Factory interface for creating instances of MailServer. A sub-interface of this should be created and registered to the guice context for each subclass of MailServer that is created.
    • Method Detail

      • create

        T create​(Realm realm)
        Create a new MailServer.
        Parameters:
        realm - the realm from which to fetch the mail service configuration
        Returns:
        a new instance of MailServer