org.cruxframework.crux.core.server.classpath
Class ClassPathResolverImpl
java.lang.Object
org.cruxframework.crux.core.server.classpath.ClassPathResolverImpl
- All Implemented Interfaces:
- ClassPathResolver
public class ClassPathResolverImpl
- extends Object
- implements ClassPathResolver
This basic classPathResolver works on most application servers.
- Author:
- Thiago da Rosa de Bustamante
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPathResolverImpl
public ClassPathResolverImpl()
findWebBaseDir
public URL findWebBaseDir()
- Description copied from interface:
ClassPathResolver
- Return an array of URLs pointing to application's web directories. More than one directory can exist
if application has more than one crux module.
- Specified by:
findWebBaseDir in interface ClassPathResolver
- Returns:
- An Array of URLs pointing to application's web directories
- See Also:
ClassPathResolver.findWebBaseDir()
findWebInfClassesPath
public URL findWebInfClassesPath()
- Specified by:
findWebInfClassesPath in interface ClassPathResolver
- Returns:
- URL pointing to application's WEB-INF/classes directory
- See Also:
ClassPathResolver.findWebInfClassesPath()
findWebInfLibJars
public URL[] findWebInfLibJars()
- Specified by:
findWebInfLibJars in interface ClassPathResolver
- Returns:
- An Array of URLs pointing to application's WEB-INF/lib jars
- See Also:
ClassPathResolver.findWebInfLibJars()
findWebInfLibPath
public URL findWebInfLibPath()
- Specified by:
findWebInfLibPath in interface ClassPathResolver
- Returns:
- URL pointing to application's WEB-INF/lib directory
- See Also:
ClassPathResolver.findWebInfLibPath()
initialize
public void initialize()
- Description copied from interface:
ClassPathResolver
- Initialize the classpath resolver
- Specified by:
initialize in interface ClassPathResolver
- See Also:
ClassPathResolver.initialize()
setWebBaseDir
public void setWebBaseDir(URL url)
- Specified by:
setWebBaseDir in interface ClassPathResolver
- Parameters:
url - list of applications web folders- See Also:
org.cruxframework.crux.core.server.classpath.ClassPathResolver#setWebBaseDirs(java.net.URL)
setWebInfClassesPath
public void setWebInfClassesPath(URL url)
- Specified by:
setWebInfClassesPath in interface ClassPathResolver
- Parameters:
url - new path to web-inf/classes folder- See Also:
ClassPathResolver.setWebInfClassesPath(java.net.URL)
setWebInfLibJars
public void setWebInfLibJars(URL[] url)
- Specified by:
setWebInfLibJars in interface ClassPathResolver
- Parameters:
url - list of jar files present into web-inf/lib folder- See Also:
ClassPathResolver.setWebInfLibJars(java.net.URL[])
setWebInfLibPath
public void setWebInfLibPath(URL url)
- Specified by:
setWebInfLibPath in interface ClassPathResolver
- Parameters:
url - new path to web-inf/lib folder- See Also:
ClassPathResolver.setWebInfLibPath(java.net.URL)
Copyright © 2015. All rights reserved.