src/main/java/org/jboss/loom/MigrationEngine.java
private void init() throws MigrationException {
        
        // Find IMigrator implementations.
        List<Class<? extends IMigrator>> migratorClasses = findMigratorClasses();

        // Initialize migrator instances. 
        Map<Class<? extends IMigrator>, IMigrator> migratorsMap = 
                createJavaMigrators( migratorClasses, config.getGlobal() );
        // Initialize externalized migrators.
        String extMigDir = config.getGlobal().getExternalMigratorsDir();
        if( extMigDir != null ){
            migratorsMap.putAll( new ExternalMigratorsLoader().loadMigrators( new File(extMigDir), config.getGlobal()) );
        }
        
        this.migrators = new ArrayList(migratorsMap.values());
        
        // For each migrator...
        for( IMigrator mig : this.migrators ){
            
            // Supply some references.
            mig.setGlobalConfig( this.config.getGlobal() );
            
            // Let migrators process module-specific args.
            for( Configuration.ModuleSpecificProperty moduleOption : config.getModuleConfigs() ){
                mig.examineConfigProperty( moduleOption );
            }
        }
        
    }
/**
     *  Initializes this Migrator, especially instantiates the IMigrators.
     *  No time to make it neatly so it's a bit procedural.
     */
Initializes this Migrator, especially instantiates the IMigrators.
No time to make it neatly so it's a bit procedural.
Initializes this Migrator especially instantiates the IMigrators . No time to make it neatly so it ' s a bit procedural .
private void init() throws MigrationException {
        List<Class<? extends IMigrator>> migratorClasses = findMigratorClasses();
        Map<Class<? extends IMigrator>, IMigrator> migratorsMap = 
                createJavaMigrators( migratorClasses, config.getGlobal() );
        String extMigDir = config.getGlobal().getExternalMigratorsDir();
        if( extMigDir != null ){
            migratorsMap.putAll( new ExternalMigratorsLoader().loadMigrators( new File(extMigDir), config.getGlobal()) );
        }
        this.migrators = new ArrayList(migratorsMap.values());
        for( IMigrator mig : this.migrators ){
            mig.setGlobalConfig( this.config.getGlobal() );
            for( Configuration.ModuleSpecificProperty moduleOption : config.getModuleConfigs() ){
                mig.examineConfigProperty( moduleOption );
            }
        }
    }
private void init ( ) throws MigrationException { List < Class < ? extends IMigrator > > migratorClasses = findMigratorClasses ( ) ; Map < Class < ? extends IMigrator > , IMigrator > migratorsMap = createJavaMigrators ( migratorClasses , config . getGlobal ( ) ) ; String extMigDir = config . getGlobal ( ) . getExternalMigratorsDir ( ) ; if ( extMigDir != null ) { migratorsMap . putAll ( new ExternalMigratorsLoader ( ) . loadMigrators ( new File ( extMigDir ) , config . getGlobal ( ) ) ) ; } this . migrators = new ArrayList ( migratorsMap . values ( ) ) ; for ( IMigrator mig : this . migrators ) { mig . setGlobalConfig ( this . config . getGlobal ( ) ) ; for ( Configuration . ModuleSpecificProperty moduleOption : config . getModuleConfigs ( ) ) { mig . examineConfigProperty ( moduleOption ) ; } } }
Initializes this Migrator, especially instantiates the IMigrators.
Initializes this Migrator especially instantiates the IMigrators .
// Find IMigrator implementations. // Initialize migrator instances.  // Initialize externalized migrators. // For each migrator... // Supply some references. // Let migrators process module-specific args.