Package 

Interface MetadataBootstrappingGuard


  • 
    public interface MetadataBootstrappingGuard<T extends MetadataContainer>
    
                        

    Guard that ensures that metadata bootstrapping process (loading and parsing) is triggered only once per metadata file.

    • Method Summary

      Modifier and Type Method Description
      abstract T getOrBootstrap(String phoneMetadataFile) If metadata from the provided file has not yet been read, invokes loading and parsing from theprovided file and adds the result to guarded MetadataContainer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getOrBootstrap

         abstract T getOrBootstrap(String phoneMetadataFile)

        If metadata from the provided file has not yet been read, invokes loading and parsing from theprovided file and adds the result to guarded MetadataContainer.

        Parameters:
        phoneMetadataFile - to read from