Class World


  • public final class World
    extends Object
    "Global variables" for the test harness. Use with caution. This class includes pointers to various ClassRealms that represent compartments inside the VM.

    The followings are the key realms:

    1. "harness" realm that loads all the test harness code, including lots of 3rd party jars.
    2. "runtime" realm that loads the classes that the client script will use to execute tests.
    3. "wsimport" realm that loads the tool/wsgen tools, if we invoke it within the same VM. Otherwise this realm is empty.

      Realms are created when World is created, but they are filled in from Main.

    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • project

        public static final org.apache.tools.ant.Project project
        Whenever we need a Project to use Ant tasks, we can use this shared instance.
      • runtime

        public static final Realm runtime
        Loads JAX-WS runtime classes. This realm is also used to load the embedded application container, so that we don't have to package JAX-WS runtime into the war file.
      • tool

        public static final Realm tool
      • debug

        public static boolean debug
        See Also:
        Main.debug
    • Constructor Detail

      • World

        public World()