ppkarwasz commented on code in PR #3703:
URL: https://github.com/apache/logging-log4j2/pull/3703#discussion_r2118229137


##########
log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/api/ConfigurationBuilder.java:
##########
@@ -61,6 +61,15 @@ public interface ConfigurationBuilder<T extends 
Configuration> extends Builder<T
      */
     ConfigurationBuilder<T> add(CustomLevelComponentBuilder builder);
 
+    /**
+     * Adds a top level component.
+     * @param builder The ComponentBuilder with all of its attributes and sub 
components set.
+     * @return this builder instance.
+     */
+    default ConfigurationBuilder<T> addComponent(ComponentBuilder<?> builder) {
+        throw new UnsupportedOperationException();
+    }

Review Comment:
   Yes, that would be my preferred option.
   
   If someone implemented `ConfigurationBuilder`, he can expect compilation 
errors after a minor version bump.



-- 
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: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to