Interface MailServerFactory<T extends MailServer>
-
- Type Parameters:
T
- the type ofMailServer
to 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 ofMailServer
that is created.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
create(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
-
-