Class ArchiveAwareClassLoaderFactory


  • public class ArchiveAwareClassLoaderFactory
    extends java.lang.Object
    Factory for creation of WAR aware ClassLoader.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      ArchiveAwareClassLoaderFactory​(java.lang.ClassLoader parentClassLoader)
      Instantiate with specific parent ClassLoader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader createClassLoader​(java.net.URL url, java.lang.String classesPrefix, java.lang.String libPrefix)
      Creates the ClassLoader.
      • Methods inherited from class java.lang.Object

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

      • ArchiveAwareClassLoaderFactory

        public ArchiveAwareClassLoaderFactory​(java.lang.ClassLoader parentClassLoader)
        Instantiate with specific parent ClassLoader.
        Parameters:
        parentClassLoader -
    • Method Detail

      • createClassLoader

        public java.lang.ClassLoader createClassLoader​(java.net.URL url,
                                                       java.lang.String classesPrefix,
                                                       java.lang.String libPrefix)
                                                throws java.io.IOException,
                                                       java.net.URISyntaxException
        Creates the ClassLoader.
        Parameters:
        url - URL to archive File.
        classesPrefix - Prefix of classes in archive.
        libPrefix - Prefix for libs in archive.
        Returns:
        ClassLoader.
        Throws:
        java.io.IOException - If fails to create ClassLoader.
        java.net.URISyntaxException - If fails on URL for ClassLoader.