public void updatedTemplate ( Bundle bundle , File templateFile ) { ThymeLeafTemplateImplementation template = getTemplateByFile ( templateFile ) ; if ( template != null ) { LOGGER . debug ( "Thymeleaf template updated for {} ({})" , templateFile . getAbsoluteFile ( ) , template . fullName ( ) ) ; updatedTemplate ( ) ; } else { try { addTemplate ( bundle , templateFile . toURI ( ) . toURL ( ) ) ; } catch ( MalformedURLException e ) { //NOSONAR // Ignored. } } }
Updates the template object using the given file as backend .