Class Bootstrap

  • Direct Known Subclasses:
    CheckinClientBootstrap

    public class Bootstrap
    extends Object
    The bootstrap class used for bootstrapping a Carbon server in standalone mode.

    Added this mainly to support child-first classloading for webapps

    See http://frank.zinepal.com/embedded-tomcat-class-loading-trickery See http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html

    • Field Detail

      • ROOT

        protected static final String ROOT
    • Constructor Detail

      • Bootstrap

        public Bootstrap()
    • Method Detail

      • main

        public static void main​(String[] args)
      • loadClass

        protected final void loadClass​(String[] args)
      • addFileUrl

        protected final void addFileUrl​(File file)
                                 throws MalformedURLException
        Add a given file or directory to the list of URLs.
        Parameters:
        file - the directory to recursively search for JAR files.
        Throws:
        MalformedURLException - If a provided JAR file URL is malformed
      • addJarFileUrls

        protected final void addJarFileUrls​(File root)
                                     throws MalformedURLException
        Add JAR files found in the given directory to the list of URLs.
        Parameters:
        root - the directory to recursively search for JAR files.
        Throws:
        MalformedURLException - If a provided JAR file URL is malformed
      • getClassToLoad

        protected String getClassToLoad()
      • getMethodToInvoke

        protected String getMethodToInvoke()