public void initialize(Iterable<ModuleMetadataFileFinder> moduleMetadataFiles, ClassLoader cl) {
      // First init core module metadata
      FileLookup fileLookup = FileLookupFactory.newInstance();
      try {
         readMetadata(fileLookup.lookupFileLocation("infinispan-core-component-metadata.dat", cl));
      } catch (Exception e) {
         throw new CacheException("Unable to load component metadata!", e);
      }

      // Now the modules
      for (ModuleMetadataFileFinder finder: moduleMetadataFiles) {
         try {
            readMetadata(fileLookup.lookupFileLocation(finder.getMetadataFilename(), cl));
         } catch (Exception e) {
            throw new CacheException("Unable to load component metadata in file " + finder.getMetadataFilename(), e);
         }
      }
   }
public void initialize ( Iterable < ModuleMetadataFileFinder > moduleMetadataFiles , ClassLoader cl ) { FileLookup fileLookup = FileLookupFactory . newInstance ( ) ; try { readMetadata ( fileLookup . lookupFileLocation ( "infinispan-core-component-metadata.dat" , cl ) ) ; } catch ( Exception e ) { throw new CacheException ( "Unable to load component metadata!" , e ) ; } for ( ModuleMetadataFileFinder finder : moduleMetadataFiles ) { try { readMetadata ( fileLookup . lookupFileLocation ( finder . getMetadataFilename ( ) , cl ) ) ; } catch ( Exception e ) { throw new CacheException ( "Unable to load component metadata in file " + finder . getMetadataFilename ( ) , e ) ; } } }
Initializes this repository.  The Iterable passed in should contain all {@link ModuleMetadataFileFinder} instances
for all loaded Infinispan modules.  Note that the core module is always loaded and need not be contained in this
iterable.
@param moduleMetadataFiles file finders to iterate through and load into the repository