Class DefaultSessionProvider
java.lang.Object
io.micronaut.email.javamail.sender.DefaultSessionProvider
- All Implemented Interfaces:
SessionProvider
@Requires(beans=MailPropertiesProvider.class)
@Secondary
@Singleton
public class DefaultSessionProvider
extends Object
implements SessionProvider
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionDefaultSessionProvider
(MailPropertiesProvider mailPropertiesProvider, @Nullable jakarta.mail.Authenticator authenticator) -
Method Summary
-
Constructor Details
-
DefaultSessionProvider
public DefaultSessionProvider(MailPropertiesProvider mailPropertiesProvider, @Nullable @Nullable jakarta.mail.Authenticator authenticator) - Parameters:
mailPropertiesProvider
- Mail Properties Providerauthenticator
- Authenticator- Since:
- 1.3.0
-
-
Method Details
-
session
@NonNull public @NonNull jakarta.mail.Session session()- Specified by:
session
in interfaceSessionProvider
- Returns:
- Get session
-