Package org.pdfsam.console.business

Examples of org.pdfsam.console.business.ConsoleServicesFacade


        initLoggingFramework();
        try {
            if (args == null || args.length == 0) {
                args = new String[] { "-help" };
            }
            serviceFacade = new ConsoleServicesFacade();
            if (serviceFacade != null) {
                AbstractParsedCommand parsedCommand = serviceFacade.parseAndValidate(args);
                if (parsedCommand != null) {
                    serviceFacade.execute(parsedCommand);
                }
View Full Code Here


    this.myStringArray = myStringArray;
  }
         
  public void run() {
       try{
        ConsoleServicesFacade serviceFacade = Configuration.getInstance().getConsoleServicesFacade();
      AbstractParsedCommand cmd = serviceFacade.parseAndValidate(myStringArray);
      if(cmd != null){
        serviceFacade.execute(cmd);
        SoundPlayer.getInstance().playSound();
      }else{
        log.error(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Command validation returned an empty value."));
      }
      log.info(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Command executed."));
View Full Code Here

        checkForUpdates = isValidTrueValue(strategy.getCheckForUpdatesValue());
        playSounds = isValidTrueValue(strategy.getPlaySoundsValue());
        pluginAbsolutePath = strategy.getPluginAbsolutePath();
        askOverwriteConfirmation = isValidTrueValue(strategy.getAskOverwriteConfirmation());

        consoleServicesFacade = new ConsoleServicesFacade();
        strategy.close();
      } else {
        throw new ConfigurationException("Unable to parse xml configuration file.");
      }
    } catch (DocumentException e) {
View Full Code Here

TOP

Related Classes of org.pdfsam.console.business.ConsoleServicesFacade

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.