@ Override public InputStream getResourceAsStream ( String name ) { ResourceEntry entry = _resourceCacheMap . get ( name ) ; if ( entry == null || entry . isModified ( ) ) { URL resource = super . getResource ( name ) ; entry = new ResourceEntry ( resource ) ; _resourceCacheMap . put ( name , entry ) ; } return entry . getResourceAsStream ( ) ; }
Overrides getResource to implement caching .