private List < GeneratorTask > createWaiterAcceptorClassTasks ( ) throws IOException { List < GeneratorTask > generatorTasks = new ArrayList <> ( ) ; for ( Map . Entry < String , WaiterDefinitionModel > entry : model . getWaiters ( ) . entrySet ( ) ) { if ( containsAllStatusMatchers ( entry ) ) { continue ; } final String waiterName = entry . getKey ( ) ; final WaiterDefinitionModel waiterModel = entry . getValue ( ) ; Map < String , Object > dataModel = ImmutableMapParameter . of ( "fileHeader" , model . getFileHeader ( ) , "waiter" , waiterModel , "operation" , model . getOperation ( waiterModel . getOperationName ( ) ) , "metadata" , model . getMetadata ( ) ) ; generatorTasks . add ( new FreemarkerGeneratorTask ( waiterClassDir , waiterName , freemarker . getWaiterAcceptorTemplate ( ) , dataModel ) ) ; } return generatorTasks ; }
Constructs the data model and submits tasks for every generating Acceptor for each waiter definition in the intermediate model