Class MailServerLoader
- java.lang.Object
-
- org.forgerock.openam.forgerockrest.utils.MailServerLoader
-
public class MailServerLoader extends Object
Responsible for loading theMailServerimplementation. Simplifies the reflection based code around this task.
-
-
Constructor Summary
Constructors Constructor Description MailServerLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MailServerload(String clazz, String realm)Load the mail server implementation based on the class name and realm.
-
-
-
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.
-
-