[Google Guava] Guava goodness – loading a file from a directory hierarchy

The case:

  1. we want to have an ability to override some static resources in the application
  2. we can have multiple overrides
  3. there is a hierarchy which decides which file is selected if we have multiple overrides
  4. the hierarchy is fixed from the most important to the less important directories

The code:

Could not embed GitHub Gist 5236723: API rate limit exceeded for 213.251.182.110. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

The other code ­čśë :

Could not embed GitHub Gist 5236774: API rate limit exceeded for 213.251.182.110. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

Joy :)

  1. wookieb says:

    public HierarchyAwareResourceLoader not public HierarchyAware re ResourceLoader

  1. There are no trackbacks for this post yet.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.