/*
 * Copyright 2015-2017 the original author or authors.
 *
 * Licensed 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 javax.application.converter;

/**
 * The ConverterRegistry can be used to locate a converter for
 * any given type name. Converters must support the
 * {@code javax.application.converter.Converter} interface for converting a given value.
 * <p>
 *
 * @author Andres Almiray
 */
public interface ConverterRegistry {
    /**
     * Registers a converter class used to convert values of the given target class.
     * If the converter class is {@code null},
     * then any existing definition will be removed.
     * Thus this method can be used to cancel the registration.
     * The registration is canceled automatically
     * if either the target or converter class is unloaded.
     * <p>
     *
     * @param targetType     the class object of the type to be converted. Must not be {@code null}
     * @param converterClass the class object of the converter class. Must not be {@code null}
     */
    <T> void registerConverter(Class<T> targetType, Class<? extends Converter<T>> converterClass);

    /**
     * Unregisters converter class used to convert values of the given target class.
     *
     * @param targetType     the class object of the type to be converted. Must not be {@code null}
     * @param converterClass the class object of the converter class. Must not be {@code null}
     */
    <T> void unregisterConverter(Class<T> targetType, Class<? extends Converter<T>> converterClass);

    /**
     * Locates a value converter for a given target type.
     *
     * @param targetType The Class object for the type to be converter. Must not be {@code null}
     *
     * @return A converter object for the given target class.
     * The result is {@code null} if no suitable converter can be found.
     */
    <T> Converter<T> findConverter(Class<T> targetType);
}

@@ -1033,300 +1033,15 @@
 ss.%0A
-     * If the converter class is %7B@code null%7D,%0A     * then any existing definition will be removed.%0A     * Thus this method can be used to cancel the registration.%0A     * The registration is canceled automatically%0A     * if either the target or converter class is unloaded.%0A     * %3Cp%3E%0A
      *%0A
+
     
@@ -1366,16 +1366,18 @@
 gisters 
+a 
 converte
@@ -1426,32 +1426,162 @@
 n target class.%0A
+     * If the given %7B@code converterClass%7D is %7B@code null%7D then all registrations matching %7B@code targetType%7D%0A     * are removed.%0A
      *%0A     * @p
@@ -1734,39 +1734,34 @@
 nverter class. M
-ust not
+ay
  be %7B@code null%7D
@@ -2183,32 +2183,32 @@
  found.%0A     */%0A
-
     %3CT%3E Converte
@@ -2247,11 +2247,98 @@
 etType);
+%0A%0A    /**%0A     * Removes all currently registered converters.%0A     */%0A    void clear();
 %0A%7D%0A

Update ConverterRegistry - add a "clear" method to unregister all converters