/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache license, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the license for the specific language governing permissions and
 * limitations under the license.
 */

package org.apache.logging.log4j.core.appender.mom.kafka;

import java.util.Properties;

import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.Producer;

public class DefaultKafkaProducerFactory implements KafkaProducerFactory {

    @Override
    public Producer<byte[], byte[]> newKafkaProducer(final Properties config) {
        return new KafkaProducer<>(config);
    }

}

@@ -1,11 +1,10 @@
 /*
-%0D
 %0A * Lice
@@ -65,17 +65,16 @@
  or more
-%0D
 %0A * cont
@@ -133,25 +133,24 @@
 ributed with
-%0D
 %0A * this wor
@@ -208,17 +208,16 @@
 nership.
-%0D
 %0A * The 
@@ -283,17 +283,16 @@
 sion 2.0
-%0D
 %0A * (the
@@ -355,17 +355,16 @@
 nce with
-%0D
 %0A * the 
@@ -411,21 +411,19 @@
 cense at
-%0D
 %0A *
-%0D
 %0A *     
@@ -469,13 +469,11 @@
 -2.0
-%0D
 %0A *
-%0D
 %0A * 
@@ -539,17 +539,16 @@
 software
-%0D
 %0A * dist
@@ -608,17 +608,16 @@
 %22 BASIS,
-%0D
 %0A * WITH
@@ -684,17 +684,16 @@
 implied.
-%0D
 %0A * See 
@@ -755,17 +755,16 @@
 ions and
-%0D
 %0A * limi
@@ -793,16 +793,13 @@
 nse.
-%0D
 %0A */
-%0D%0A%0D
+%0A
 %0Apac
@@ -852,19 +852,17 @@
 m.kafka;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -882,19 +882,17 @@
 perties;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -939,17 +939,16 @@
 roducer;
-%0D
 %0Aimport 
@@ -994,89 +994,503 @@
 cer;
-%0D%0A%0D%0Apublic class DefaultKafkaProducerFactory implements KafkaProducerFactory %7B%0D%0A%0D
+%0A%0A/**%0A * Creates %3Ca href=%22https://kafka.apache.org/%22%3EApache Kafka%3C/a%3E %7B@link Producer%7D instances.%0A */%0Apublic class DefaultKafkaProducerFactory implements KafkaProducerFactory %7B%0A%0A    /**%0A     * Creates a new Kafka Producer from the given configuration properties.%0A     * %0A     * @param config%0A     *            %3Ca href=%22https://kafka.apache.org/documentation.html#producerconfigs%22%3EKafka Producer configuration%0A     *            properties.%3C/a%3E%0A     * @return a new Kafka %7B@link Producer%7D.%0A     */
 %0A   
@@ -1499,17 +1499,16 @@
 Override
-%0D
 %0A    pub
@@ -1579,17 +1579,16 @@
 onfig) %7B
-%0D
 %0A       
@@ -1627,18 +1627,14 @@
 ig);
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A%7D
-%0D
 %0A

Add Javadocs.