Exemplo n.º 1
0
  public static void main(String[] args) {
    JConfig.setLogger(new ErrorManagement());
    ActiveRecord.disableDatabase();
    AuctionEntry.addObserver(EntryFactory.getInstance());
    AuctionEntry.addObserver(
        new Observer<AuctionEntry>() {
          public void afterCreate(AuctionEntry o) {
            EntryCorral.getInstance().putWeakly(o);
          }
        });
    JBTool tool = new JBTool(args);

    tool.execute();
    System.exit(0);
  }