this.logger = logger;
this.versionMatcher = new VersionMatcher();
if ( repositoryRegistry == null )
{
throw new InitializationException( "NPANDAY-103-000: Unable to find the repository registry" );
}
logger.debug( "NPANDAY-103-036.0: Respository registry: " + repositoryRegistry);
SettingsRepository settingsRepository = null;
try
{
settingsRepository = SettingsUtil.getOrPopulateSettingsRepository( repositoryRegistry );
}
catch ( SettingsException e )
{
throw new InitializationException( "NPANDAY-103-067: Could not get settings." , e);
}
if (settingsRepository != null)
{
try
{
defaultVendor = VendorFactory.createVendorFromName( settingsRepository.getDefaultSetup().getVendorName() );
logger.debug( "NPANDAY-103-036: Default Vendor Initialized: Name = " + defaultVendor );
}
catch ( VendorUnsupportedException e )
{
throw new InitializationException( "NPANDAY-103-002: Unknown Default Vendor: Name = " + defaultVendor, e );
}
defaultVendorVersion = settingsRepository.getDefaultSetup().getVendorVersion().trim();
defaultFrameworkVersion = settingsRepository.getDefaultSetup().getFrameworkVersion().trim();
}
}