public void init() { UpdateTimeConfig updateTimeConfig = new UpdateTimeConfig(); ProgramTypeConfig programTypeConfig = new ProgramTypeConfig(); programTypeConfig.setNext(updateTimeConfig); ProgramPathConfig programPathConfig = new ProgramPathConfig(); programPathConfig.setNext(programTypeConfig); LogsConfig logsConfig = new LogsConfig(); logsConfig.setNext(programPathConfig); DateConfig dateConfig = new DateConfig(); dateConfig.setNext(logsConfig); DataBaseConfig dataBaseConfig = new DataBaseConfig(); dataBaseConfig.setNext(dateConfig); ConnectionConfig connectionConfig = new ConnectionConfig(new MsSqlServerController()); connectionConfig.setNext(dataBaseConfig); firstConfigReader = new AvevaConfig(); firstConfigReader.setNext(connectionConfig); }