private void initializeAllExtensions(final File extensionsPath) throws ConfigException {
  try {
    if (!extensionsPath.exists()) {
      adminLogger.warn(WARN_ADMIN_NO_EXTENSIONS_DIR,extensionsPath);
      return;
    }
    if (!extensionsPath.isDirectory()) {
      throw new ConfigException(ERR_ADMIN_EXTENSIONS_DIR_NOT_DIRECTORY.get(extensionsPath));
    }
    addExtension(listFiles(extensionsPath));
  }
 catch (  final ConfigException e) {
    debugLogger.trace("Unable to initialize all extensions",e);
    throw e;
  }
catch (  final Exception e) {
    debugLogger.trace("Unable to initialize all extensions",e);
    final LocalizableMessage message=ERR_ADMIN_EXTENSIONS_CANNOT_LIST_FILES.get(extensionsPath,stackTraceToSingleLineString(e,true));
    throw new ConfigException(message,e);
  }
}

private void initializeAllExtensions ( final File extensionsPath ) throws ConfigException { try { if ( ! extensionsPath . exists ( ) ) { adminLogger . warn ( WARN_ADMIN_NO_EXTENSIONS_DIR , extensionsPath ) ; return ; } if ( ! extensionsPath . isDirectory ( ) ) { throw new ConfigException ( ERR_ADMIN_EXTENSIONS_DIR_NOT_DIRECTORY . get ( extensionsPath ) ) ; } addExtension ( listFiles ( extensionsPath ) ) ; } catch ( final ConfigException e ) { debugLogger . trace ( "Unable to initialize all extensions" , e ) ; throw e ; } catch ( final Exception e ) { debugLogger . trace ( "Unable to initialize all extensions" , e ) ; final LocalizableMessage message = ERR_ADMIN_EXTENSIONS_CANNOT_LIST_FILES . get ( extensionsPath , stackTraceToSingleLineString ( e , true ) ) ; throw new ConfigException ( message , e ) ; } }
put extensions jars into the class loader and load all configuration definition classes in that they contain .
