public List < ? super OpenShiftResource > processTemplateResources ( ) { List < ? extends OpenShiftResource > resources ; final List < ? super OpenShiftResource > processedResources = new ArrayList <> ( ) ; templates = OpenShiftResourceFactory . getTemplates ( getType ( ) ) ; boolean sync_instantiation = OpenShiftResourceFactory . syncInstantiation ( getType ( ) ) ; /* Instantiate templates */ for ( Template template : templates ) { resources = processTemplate ( template ) ; if ( resources != null ) { if ( sync_instantiation ) { /* synchronous template instantiation */ processedResources . addAll ( resources ) ; } else { /* asynchronous template instantiation */ try { delay ( openShiftAdapter , resources ) ; } catch ( Throwable t ) { throw new IllegalArgumentException ( asynchronousDelayErrorMessage ( ) , t ) ; } } } } return processedResources ; }
Instantiates the templates specified by