common/src/main/java/com/kakoo/foundation/common/resource/bundle/ResourceBundleManager.java
/**
     * Updates the data structure keeping a trace of the association between the annotation class, the annotated class and the resource bundle file name.
     *
     * @param annotationClass Annotation class.
     * @param annotatedClass Annotated class.
     * @param baseBundleName Base bundle file name.
     */
Updates the data structure keeping a trace of the association between the annotation class, the annotated class and the resource bundle file name.
@param annotationClass Annotation class.
@param annotatedClass Annotated class.
@param baseBundleName Base bundle file name.
Updates the data structure keeping a trace of the association between the annotation class the annotated class and the resource bundle file name . @param annotationClass Annotation class . @param annotatedClass Annotated class . @param baseBundleName Base bundle file name .
private static void update(final @NonNull Class<? extends Annotation> annotationClass, final @NonNull Class<?> annotatedClass, final @NonNull String baseBundleName)
    {
        String filename;
        Map<Class<?>, String> classes = ANNOTATION_CLASSES.get(annotationClass);
        if (classes == null)
        {
            classes = new HashMap<>();
        }
        filename = classes.get(annotatedClass);
        if (filename == null)
        {
            classes.put(annotatedClass, baseBundleName);
            ANNOTATION_CLASSES.put(annotationClass, classes);
            register(baseBundleName);
        }
    }
private static void update ( final @ NonNull Class < ? extends Annotation > annotationClass , final @ NonNull Class < ? > annotatedClass , final @ NonNull String baseBundleName ) { String filename ; Map < Class < ? > , String > classes = ANNOTATION_CLASSES . get ( annotationClass ) ; if ( classes == null ) { classes = new HashMap < > ( ) ; } filename = classes . get ( annotatedClass ) ; if ( filename == null ) { classes . put ( annotatedClass , baseBundleName ) ; ANNOTATION_CLASSES . put ( annotationClass , classes ) ; register ( baseBundleName ) ; } }
Updates the data structure keeping a trace of the association between the annotation class, the annotated class and the resource bundle file name.
Updates the data structure keeping a trace of the association between the annotation class the annotated class and the resource bundle file name .