public boolean checkChangeForGroup ( final String uri , final String groupName ) throws IOException { notNull ( uri ) ; notNull ( groupName ) ; LOG . debug ( "group={}, uri={}" , groupName , uri ) ; final ResourceChangeInfo resourceInfo = changeInfoMap . get ( uri ) ; if ( resourceInfo . isCheckRequiredForGroup ( groupName ) ) { final InputStream inputStream = locatorFactory . locate ( uri ) ; try { final String currentHash = hashStrategy . getHash ( inputStream ) ; resourceInfo . updateHashForGroup ( currentHash , groupName ) ; } finally { IOUtils . closeQuietly ( inputStream ) ; } } return resourceInfo . isChanged ( groupName ) ; }
Check if an uri from a particular group has changed .