src/main/java/pityoulish/jrmi/client/Main.java
public final static void main(String[] args)
    throws Exception
  {
    DataFormatter df = new DataFormatterImpl(System.out);

    // rbh deals with the registry, mbch calls the server remotely
    RegistryBackendHandler rbh = new RegistryBackendHandlerImpl();
    MsgBoardClientHandler mbch = new MsgBoardClientHandlerImpl(rbh, df);

    // mbcd interprets command-line arguments
    MsgBoardCommandDispatcher mbcd = new MsgBoardCommandDispatcher(mbch);
    ArgsInterpreter ai = new ArgsInterpreter(rbh, mbcd);

    int status = ai.handle(args);
    System.exit(status);
  }
/**
   * Main entry point.
   *
   * @param args        the command-line arguments
   *
   * @throws Exception  in case of a problem
   */
Main entry point.
@param args        the command-line arguments

@throws Exception  in case of a problem
Main entry point . @param args the command - line arguments @throws Exception in case of a problem
public final static void main(String[] args)
    throws Exception
  {
    DataFormatter df = new DataFormatterImpl(System.out);
    RegistryBackendHandler rbh = new RegistryBackendHandlerImpl();
    MsgBoardClientHandler mbch = new MsgBoardClientHandlerImpl(rbh, df);
    MsgBoardCommandDispatcher mbcd = new MsgBoardCommandDispatcher(mbch);
    ArgsInterpreter ai = new ArgsInterpreter(rbh, mbcd);
    int status = ai.handle(args);
    System.exit(status);
  }
public final static void main ( String [ ] args ) throws Exception { DataFormatter df = new DataFormatterImpl ( System . out ) ; RegistryBackendHandler rbh = new RegistryBackendHandlerImpl ( ) ; MsgBoardClientHandler mbch = new MsgBoardClientHandlerImpl ( rbh , df ) ; MsgBoardCommandDispatcher mbcd = new MsgBoardCommandDispatcher ( mbch ) ; ArgsInterpreter ai = new ArgsInterpreter ( rbh , mbcd ) ; int status = ai . handle ( args ) ; System . exit ( status ) ; }
Main entry point.
Main entry point .
// rbh deals with the registry, mbch calls the server remotely // mbcd interprets command-line arguments