Package net.officefloor.servlet.archive
Class ArchiveAwareClassLoaderFactory
- java.lang.Object
-
- net.officefloor.servlet.archive.ArchiveAwareClassLoaderFactory
-
public class ArchiveAwareClassLoaderFactory extends java.lang.Object
Factory for creation of WAR awareClassLoader
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ArchiveAwareClassLoaderFactory(java.lang.ClassLoader parentClassLoader)
Instantiate with specific parentClassLoader
.
-
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 theClassLoader
.
-
-
-
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 theClassLoader
.- Parameters:
url
-URL
to archiveFile
.classesPrefix
- Prefix of classes in archive.libPrefix
- Prefix for libs in archive.- Returns:
ClassLoader
.- Throws:
java.io.IOException
- If fails to createClassLoader
.java.net.URISyntaxException
- If fails onURL
forClassLoader
.
-
-