protected void postInit ( ) { Collection < TrainingListener > oldListeners = new ArrayList <> ( ) ; Collection < TrainingListener > replicatedListeners = new ArrayList <> ( ) ; if ( parallelWrapper . getListeners ( ) != null ) { oldListeners . addAll ( parallelWrapper . getListeners ( ) ) ; } configureListeners ( uuid , oldListeners , replicatedListeners ) ; this . replicatedModel . setListeners ( replicatedListeners ) ; }
This method does post - initialization configuration of Model . Good place to configure listeners and all such a things