From ae7435a8410c24208daebe85f4bd6c1c7ec878ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Verh=C3=A1s=20Istv=C3=A1n?= Date: Sun, 24 Mar 2024 20:37:15 +0100 Subject: [PATCH] #708 Add missing javadoc for supporting ServiceLoader mechanism --- api/src/main/java/jakarta/mail/Provider.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/jakarta/mail/Provider.java b/api/src/main/java/jakarta/mail/Provider.java index 316a343e..1e0b7bbb 100644 --- a/api/src/main/java/jakarta/mail/Provider.java +++ b/api/src/main/java/jakarta/mail/Provider.java @@ -18,7 +18,10 @@ /** * The Provider is a class that describes a protocol - * implementation. The values typically come from the + * implementation. The {@link Session} supports + * configuring providers using the Java SE + * {@link java.util.ServiceLoader ServiceLoader} mechanism. + * As an alternative the values could come from the * javamail.providers and javamail.default.providers * resource files. An application may also create and * register a Provider object to dynamically add support @@ -26,6 +29,7 @@ * * @author Max Spivak * @author Bill Shannon + * @see Session */ public class Provider {