Class Configurator

  • Direct Known Subclasses:
    ConfiguratorAdapter

    @Deprecated
    public class Configurator
    extends java.lang.Object
    Deprecated.
    A compatibility wrapper for org.codehaus.plexus.classworlds.launcher.Configurator provided for legacy code
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void associateRealms()
      Deprecated.
      Associate parent realms with their children.
      void configure​(java.io.InputStream is)
      Deprecated.
      Configure from a file.
      protected java.lang.String filter​(java.lang.String text)
      Deprecated.
      Filter a string for system properties.
      protected void loadGlob​(java.lang.String line, ClassRealm realm)
      Deprecated.
      Load a glob into the specified classloader.
      protected void loadGlob​(java.lang.String line, ClassRealm realm, boolean optionally)
      Deprecated.
      Load a glob into the specified classloader.
      void setClassWorld​(ClassWorld world)
      Deprecated.
      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)
        Deprecated.
        Construct.
        Parameters:
        launcher - The launcher to configure.
      • Configurator

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

      • setClassWorld

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

        public void configure​(java.io.InputStream is)
                       throws java.io.IOException,
                              java.net.MalformedURLException,
                              ConfigurationException,
                              DuplicateRealmException,
                              NoSuchRealmException
        Deprecated.
        Configure from a file.
        Parameters:
        is - The config input stream
        Throws:
        java.io.IOException - If an error occurs reading the config file.
        java.net.MalformedURLException - If the config file contains invalid URLs.
        ConfigurationException - If the config file is corrupt.
        DuplicateRealmException - If the config file defines two realms with the same id.
        NoSuchRealmException - If the config file defines a main entry point in a non-existent realm.
      • associateRealms

        protected void associateRealms()
        Deprecated.
        Associate parent realms with their children.
      • loadGlob

        protected void loadGlob​(java.lang.String line,
                                ClassRealm realm)
                         throws java.net.MalformedURLException,
                                java.io.FileNotFoundException
        Deprecated.
        Load a glob into the specified classloader.
        Parameters:
        line - The path configuration line.
        realm - The realm to populate
        Throws:
        java.net.MalformedURLException - If the line does not represent a valid path element.
        java.io.FileNotFoundException - If the line does not represent a valid path element in the filesystem.
      • loadGlob

        protected void loadGlob​(java.lang.String line,
                                ClassRealm realm,
                                boolean optionally)
                         throws java.net.MalformedURLException,
                                java.io.FileNotFoundException
        Deprecated.
        Load a glob into the specified classloader.
        Parameters:
        line - The path configuration line.
        realm - The realm to populate
        optionally - Whether the path is optional or required
        Throws:
        java.net.MalformedURLException - If the line does not represent a valid path element.
        java.io.FileNotFoundException - If the line does not represent a valid path element in the filesystem.
      • filter

        protected java.lang.String filter​(java.lang.String text)
                                   throws ConfigurationException
        Deprecated.
        Filter a string for system properties.
        Parameters:
        text - The text to filter.
        Returns:
        The filtered text.
        Throws:
        ConfigurationException - If the property does not exist or if there is a syntax error.