Class Configurator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addImportFrom​(java.lang.String relamName, java.lang.String importSpec)
      Add an import specification from a realm
      void addLoadFile​(java.io.File file)
      Add a file to the realm
      void addLoadURL​(java.net.URL url)
      Add an URL to the realm
      void addRealm​(java.lang.String realmName)
      Define a new realm
      void associateRealms()
      Associate parent realms with their children.
      void configure​(java.io.InputStream is)
      Configure from a file.
      void setAppMain​(java.lang.String mainClassName, java.lang.String mainRealmName)
      Define the main class name
      void setClassWorld​(ClassWorld world)
      set world.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Configurator

        public Configurator​(Launcher launcher)
        Construct.
        Parameters:
        launcher - The launcher to configure.
      • Configurator

        public Configurator​(ClassWorld world)
        Construct.
        Parameters:
        world - The classWorld to configure.
    • Method Detail

      • setClassWorld

        public void setClassWorld​(ClassWorld world)
        set world. this setter is provided so you can use the same configurator to configure several "worlds"
        Parameters:
        world - The classWorld to configure.
      • associateRealms

        public void associateRealms()
        Associate parent realms with their children.
      • setAppMain

        public void setAppMain​(java.lang.String mainClassName,
                               java.lang.String mainRealmName)
        Description copied from interface: ConfigurationHandler
        Define the main class name
        Specified by:
        setAppMain in interface ConfigurationHandler
        Parameters:
        mainClassName - the main class name
        mainRealmName - the main realm from which the main class is loaded