vy commented on code in PR #2062:
URL: https://github.com/apache/logging-log4j2/pull/2062#discussion_r1415170900
##########
log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java:
##########
@@ -118,6 +121,15 @@ protected boolean isActive() {
return true;
}
+ /**
+ * Required for Spring Boot.
+ * @param props PropertiesUtil.
+ * @return the AuthorizationProvider, if any.
+ */
+ public static AuthorizationProvider authorizationProvider(final
PropertiesUtil props) {
+ return
AuthorizationProvider.getAuthorizationProvider((PropertyEnvironment) props);
+ }
Review Comment:
I am not really sure if `ConfigurationFactory` is the right place to provide
the `AuthorizationProvider`. Does it really need to be placed here? I mean, the
call site can themselves issue
`AuthorizationProvider.getAuthorizationProvider()` too, ain't so?
--
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]