Class MailServerLoader


  • public class MailServerLoader
    extends Object
    Responsible for loading the MailServer implementation. Simplifies the reflection based code around this task.
    • Constructor Detail

      • MailServerLoader

        public MailServerLoader()
    • Method Detail

      • load

        public MailServer load​(String clazz,
                               String realm)
                        throws IllegalStateException
        Load the mail server implementation based on the class name and realm.
        Parameters:
        clazz - Non null class name.
        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.