chibenwa commented on code in PR #3059:
URL: https://github.com/apache/james-project/pull/3059#discussion_r3419982039
##########
server/container/guice/protocols/imap/src/main/java/org/apache/james/modules/protocols/ImapDefaultSaslMechanismFactories.java:
##########
@@ -17,12 +17,15 @@
* under the License. *
****************************************************************/
-package org.apache.james.utils;
+package org.apache.james.modules.protocols;
-import org.apache.james.protocols.api.sasl.SaslMechanism;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
-public interface SaslMechanismInstantiator {
- Class<? extends SaslMechanism> locate(ClassName className) throws
ClassNotFoundException;
+import java.lang.annotation.Retention;
- SaslMechanism instantiate(ClassName className) throws
ClassNotFoundException;
+import com.google.inject.BindingAnnotation;
+
+@BindingAnnotation
+@Retention(RUNTIME)
+public @interface ImapDefaultSaslMechanismFactories {
Review Comment:
Please explain to me why this is needed.
Is this an alternative to `@Named` ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]