Interface MailServerFactory<T extends MailServer>
-
- Type Parameters:
T- the type ofMailServerto create
@SupportedAll public interface MailServerFactory<T extends MailServer>
Factory interface for creating instances ofMailServer. A sub-interface of this should be created and registered to the guice context for each subclass ofMailServerthat is created.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tcreate(Realm realm)Create a new MailServer.
-
-
-
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
-
-