src/main/java/pityoulish/jrmi/outlet/Main.java
public final static void main(String[] args)
    throws Exception
  {
    RegistryBackendHandler rbh = new RegistryBackendHandlerImpl();
    LocalOutletFactory     lof = new LocalOutletFactoryImpl();
    MsgOutletHandler       moh = new MsgOutletHandlerImpl(rbh, lof);
    // moh implements the commands

    MsgOutletCommandDispatcher mocd = new MsgOutletCommandDispatcher(moh);
    ArgsInterpreter ai = new ArgsInterpreter(rbh, mocd);

    int status = ai.handle(args);

    // For the learning experience, I don't want the JVM to terminate while
    // there are still RMI threads running. Call System.exit only for errors.
    if (status != 0)
       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
  {
    RegistryBackendHandler rbh = new RegistryBackendHandlerImpl();
    LocalOutletFactory     lof = new LocalOutletFactoryImpl();
    MsgOutletHandler       moh = new MsgOutletHandlerImpl(rbh, lof);
    MsgOutletCommandDispatcher mocd = new MsgOutletCommandDispatcher(moh);
    ArgsInterpreter ai = new ArgsInterpreter(rbh, mocd);
    int status = ai.handle(args);
    if (status != 0)
       System.exit(status);
  }
public final static void main ( String [ ] args ) throws Exception { RegistryBackendHandler rbh = new RegistryBackendHandlerImpl ( ) ; LocalOutletFactory lof = new LocalOutletFactoryImpl ( ) ; MsgOutletHandler moh = new MsgOutletHandlerImpl ( rbh , lof ) ; MsgOutletCommandDispatcher mocd = new MsgOutletCommandDispatcher ( moh ) ; ArgsInterpreter ai = new ArgsInterpreter ( rbh , mocd ) ; int status = ai . handle ( args ) ; if ( status != 0 ) System . exit ( status ) ; }
Main entry point.
Main entry point .
// moh implements the commands // For the learning experience, I don't want the JVM to terminate while // there are still RMI threads running. Call System.exit only for errors.