org.cruxframework.crux.core.server.classpath
Interface ClassPathResolver

All Known Implementing Classes:
ClassPathResolverImpl

public interface ClassPathResolver

ClassPathResolvers are used by Crux to find the location of some application's directory, like web dir, WEB-INF/classes and WEB-INF/lib dirs. Those directories are searched by some Crux scanners.

Author:
Thiago da Rosa de Bustamante

Method Summary
 URL findWebBaseDir()
          Return an array of URLs pointing to application's web directories.
 URL findWebInfClassesPath()
           
 URL[] findWebInfLibJars()
           
 URL findWebInfLibPath()
           
 void initialize()
          Initialize the classpath resolver
 void setWebBaseDir(URL url)
           
 void setWebInfClassesPath(URL url)
           
 void setWebInfLibJars(URL[] url)
           
 void setWebInfLibPath(URL url)
           
 

Method Detail

findWebInfClassesPath

URL findWebInfClassesPath()
Returns:
URL pointing to application's WEB-INF/classes directory

findWebInfLibPath

URL findWebInfLibPath()
Returns:
URL pointing to application's WEB-INF/lib directory

findWebInfLibJars

URL[] findWebInfLibJars()
Returns:
An Array of URLs pointing to application's WEB-INF/lib jars

findWebBaseDir

URL findWebBaseDir()
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.

Returns:
An Array of URLs pointing to application's web directories

setWebInfClassesPath

void setWebInfClassesPath(URL url)
Parameters:
url - new path to web-inf/classes folder

setWebInfLibPath

void setWebInfLibPath(URL url)
Parameters:
url - new path to web-inf/lib folder

setWebInfLibJars

void setWebInfLibJars(URL[] url)
Parameters:
url - list of jar files present into web-inf/lib folder

setWebBaseDir

void setWebBaseDir(URL url)
Parameters:
url - list of applications web folders

initialize

void initialize()
Initialize the classpath resolver



Copyright © 2015. All rights reserved.