@ PostConstruct public void loadTagDefinitions ( ) { Map < Addon , List < URL > > addonToResourcesMap = scanner . scanForAddonMap ( new FileExtensionFilter ( "tags.xml" ) ) ; for ( Map . Entry < Addon , List < URL > > entry : addonToResourcesMap . entrySet ( ) ) { for ( URL resource : entry . getValue ( ) ) { log . info ( "Reading tags definitions from: " + resource . toString ( ) + " from addon " + entry . getKey ( ) . getId ( ) ) ; try ( InputStream is = resource . openStream ( ) ) { tagService . readTags ( is ) ; } catch ( Exception ex ) { throw new WindupException ( "Failed reading tags definition: " + resource . toString ( ) + " from addon " + entry . getKey ( ) . getId ( ) + ":\n" + ex . getMessage ( ) , ex ) ; } } } }
Loads the tag definitions from the files with a . tags . xml suffix from the addons .