common/src/main/java/com/kakoo/foundation/common/resource/bundle/ResourceBundleManager.java
/**
     * Registers a class annotated with the {@link Bundle} annotation.
     *
     * @param annotationClass Annotation class.
     * @param annotatedClass Annotated class.
     */
Registers a class annotated with the  Bundle annotation.
@param annotationClass Annotation class.
@param annotatedClass Annotated class.
Registers a class annotated with the Bundle annotation . @param annotationClass Annotation class . @param annotatedClass Annotated class .
private static void registerBundleAnnotatedClass(final @NonNull Class<? extends Annotation> annotationClass, final @NonNull Class<?> annotatedClass)
    {
        Bundle annotation = annotatedClass.getAnnotation(Bundle.class);
        String baseBundleName = annotation.file();
        if (check(annotationClass, annotatedClass, baseBundleName))
        {
            throw new ResourceBundleException(
                    String.format("Already registered annotated class: '%s' for annotation: '%s' with resource bundle file: '%s'",
                            annotatedClass.getName(), annotationClass.getName(), baseBundleName));
        }
        update(annotationClass, annotatedClass, baseBundleName);
    }
private static void registerBundleAnnotatedClass ( final @ NonNull Class < ? extends Annotation > annotationClass , final @ NonNull Class < ? > annotatedClass ) { Bundle annotation = annotatedClass . getAnnotation ( Bundle . class ) ; String baseBundleName = annotation . file ( ) ; if ( check ( annotationClass , annotatedClass , baseBundleName ) ) { throw new ResourceBundleException ( String . format ( "Already registered annotated class: '%s' for annotation: '%s' with resource bundle file: '%s'" , annotatedClass . getName ( ) , annotationClass . getName ( ) , baseBundleName ) ) ; } update ( annotationClass , annotatedClass , baseBundleName ) ; }
Registers a class annotated with the {@link Bundle} annotation.
Registers a class annotated with the { @link Bundle } annotation .
// Extract the resource bundle file name. // Keep a trace of this association between the annotation, the annotated class and the bundle file name.