@@ -0,0 +1,1844 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements. See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache License, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with%0A * the License. You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.apache.logging.log4j.core.config.plugins.util;%0A%0A/**%0A * A type of Plugin builder that can be used to configure and create a plugin instance using a Java DSL instead of%0A * through a configuration file. These builders are primarily useful for internal code and unit tests, but they can%0A * technically be used as a verbose alternative to configuration files.%0A *%0A * %3Cp%3E%0A *     When creating plugin builders, it is customary to create the builder class as a public static inner class%0A *     called %7B@code Builder%7D. For instance, the builder class for%0A *     %7B@link org.apache.logging.log4j.core.layout.PatternLayout PatternLayout%7D would be%0A *     %7B@code PatternLayout.Builder%7D.%0A * %3C/p%3E%0A *%0A * @param %3CT%3E the Plugin class this is a builder for.%0A */%0Apublic interface ConfigurablePluginBuilder%3CT%3E %7B%0A%0A    /**%0A     * Builds the plugin object after all configuration has been set. This will use default values for any%0A     * unspecified attributes for the plugin.%0A     *%0A     * @return the configured plugin instance.%0A     */%0A    T build();%0A%7D%0A

Add interface for building plugins in Java instead of XML/JSON.