@@ -0,0 +1,2080 @@
+/*%0A * Copyright (C) 2015 Atanas Gegov%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.atanasg.fileprocessingapp;%0A%0Aimport com.atanasg.fileprocessingapp.mvc.controller.FileProcessingAppController;%0Aimport com.atanasg.fileprocessingapp.mvc.controller.FileProcessingAppControllerImpl;%0Aimport com.atanasg.fileprocessingapp.mvc.model.FileContentModel;%0Aimport com.atanasg.fileprocessingapp.mvc.model.FileContentModelImpl;%0Aimport com.atanasg.fileprocessingapp.mvc.view.FileProcessingAppCommandLineUI;%0Aimport com.atanasg.fileprocessingapp.mvc.view.FileProcessingAppView;%0Aimport com.atanasg.fileprocessingapp.rules.RuleFileFormat;%0A%0A/**%0A * The launcher class of the File Processing Application.%0A * Initializes and connects the relevant components (Model,%0A * View and Controller) and asks for the first user input.%0A *%0A * @author Atanas Gegov%0A */%0Apublic class FileProcessingAppLauncher %7B%0A%0A%09private static final String USER_FILE_PROMPT_MESSAGE = %22Please provide a path to some %25s file%22;%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// create MVC components%0A%09%09FileContentModel fileContentModel = new FileContentModelImpl();%0A%09%09FileProcessingAppView appUI = new FileProcessingAppCommandLineUI();%0A%09%09FileProcessingAppController appController = new FileProcessingAppControllerImpl();%0A%0A%09%09// connect MVC components%0A%09%09appUI.setController(appController);%0A%09%09appController.setModel(fileContentModel);%0A%09%09appController.setView(appUI);%0A%0A%09%09// Ask the user for a file%0A%09%09appUI.askUserForCommand(String.format(USER_FILE_PROMPT_MESSAGE,%0A%09%09%09%09RuleFileFormat.getValidFileFormatAsString()));%0A%09%7D%0A%7D%0A

Add application Launcher with a main method