public synchronized void initPathToResourceBundleMap ( List < JoinableResourceBundle > bundles ) throws IOException { for ( JoinableResourceBundle bundle : bundles ) { // Remove bundle reference from existing mapping if exists removePathMappingFromPathMap ( bundle ) ; List < PathMapping > mappings = bundle . getMappings ( ) ; for ( PathMapping pathMapping : mappings ) { register ( pathMapping ) ; } // Register file path mapping for linked resources List < FilePathMapping > fMappings = bundle . getLinkedFilePathMappings ( ) ; for ( FilePathMapping fMapping : fMappings ) { register ( fMapping ) ; } } }
Initialize the map which links path to asset bundle