0 Replies Latest reply on Jan 29, 2002 11:19 PM by Jamie Orchard-Hays

    Main.java

    Jamie Orchard-Hays Newbie

      in org.jboss.Main in the constructor is

      // Create MLet
      MLet mlet = new NullURLsMLet(urls);

      .......

      //inner class
      static class NullURLsMLet extends MLet
      {
      URL[] empty = {};
      public NullURLsMLet()
      {
      }
      public NullURLsMLet(URL[] urls)
      {
      super(urls);
      }

      public URL[] getURLs()
      {
      return empty;
      }
      public URL[] getLocalURLs()
      {
      return super.getURLs();
      }
      }

      What does this do? I can't figure out why he didn't just
      write:
      // Create MLet
      MLet mlet = new MLet(urls);

      Jamie