コード例 #1
0
    @Override
    public void actionPerformed(ActionEvent e) {
      ApplicationContext.getInstance().getAppStatusBean().setStatus("Shutting down...");
      frame.dispose();

      System.exit(0); // main thread has died by now, so instigate system exit from here
    }
コード例 #2
0
 public TradingDataResource(final URL locatorBase, final String strategy) {
   super("Trading Data", locatorBase);
   this.strategy = strategy;
   this.csvFormat =
       CSVFormat.DEFAULT
           .withRecordSeparator(
               ApplicationContext.getInstance()
                   .getConfigurationResource()
                   .getDefaultCsvRecordSeparator())
           .withHeader();
 }