protected void initializeArtefacts ( ArtefactHandler handler ) { if ( handler == null ) { return ; } ArtefactInfo info = getArtefactInfo ( handler . getType ( ) ) ; // Only init those that have data if ( info != null ) { //System.out.println("Initialising artefacts of kind " + handler.getType() + " with registered artefacts" + info.getGrailsClassesByName()); handler . initialize ( info ) ; } }
Re - initialize the artefacts of the specified type . This gives handlers a chance to update caches etc .