public static void registerAnnotationInterface(final String interfaceName, final ClassLoader loader) { final Class interfaceClass = loadAnnotationInterface(interfaceName, loader); if (interfaceClass != null) { ANNOTATION_ALIAS_INTERFACE_MAP.put(interfaceName, interfaceClass);
public static void registerAnnotationInterface(final String name, final Class interfaceClass) { if (ANNOTATION_ALIAS_INTERFACE_MAP.containsValue(interfaceClass)) { for (Iterator iterator = ANNOTATION_ALIAS_INTERFACE_MAP.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); if (entry.getValue().equals(interfaceClass)) { throw new CompilerException("unable to register [" + interfaceClass.getName() + "] as [" + name + "] since it is already registered under the name [" + entry.getKey() + ']'); } }
    public static void registerAnnotationInterface(final String interfaceName, final ClassLoader loader) {        final Class interfaceClass = loadAnnotationInterface(interfaceName, loader);        if (interfaceClass != null) {            ANNOTATION_ALIAS_INTERFACE_MAP.put(interfaceName, interfaceClass);        }    }