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 loadsMailServer
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MailServer
load(String realm)
Load the mail server implementation based on the class name and realm.
-
-
-
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.
-
-