Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These final steps start the framework and cause the launching application thread to wait for the framework to stop and when it does the launching thread calls System.exit() to make sure the VM actually exits.

Code Block

    private static FrameworkFactory getFrameworkFactory() throws Exception
    {
        ...
    }

This method retrieves the framework factory service by doing a META-INF/services resource lookup, which it can use to obtain the concrete class name for the factory. If you are using Java 6, then you can use the ServiceLoader API in the JRE to further simplify the factory service lookup.

The following command compiles the launcher when run from the root directory of the launcher project:

...