Added support for specifying a class loader

This commit is contained in:
Oliver Burn 2002-06-15 13:01:08 +00:00
parent d114de9013
commit 5ff797c94a
1 changed files with 19 additions and 2 deletions

View File

@ -103,6 +103,10 @@ public class Configuration
/** line numbers to ignore in header **/
private TreeSet mHeaderIgnoreLineNo = new TreeSet();
/** class loader to resolve classes with **/
private ClassLoader mLoader =
Thread.currentThread().getContextClassLoader();
/** where to place right curlies **/
private RightCurlyOption mRCurly = RightCurlyOption.SAME;
@ -144,8 +148,6 @@ public class Configuration
mLCurliesProps.put(Defn.LCURLY_OTHER_PROP, LeftCurlyOption.EOL);
}
////////////////////////////////////////////////////////////////////////////
// Constructors
////////////////////////////////////////////////////////////////////////////
@ -295,6 +297,12 @@ public class Configuration
// Getters
////////////////////////////////////////////////////////////////////////////
/** @return the class loader **/
public ClassLoader getClassLoader()
{
return mLoader;
}
/** @return pattern to match todo lines **/
public String getTodoPat()
{
@ -579,6 +587,15 @@ public class Configuration
// Setters
////////////////////////////////////////////////////////////////////////////
/**
* Set the class loader for locating classes.
* @param aLoader the class loader
*/
public void setClassLoader(ClassLoader aLoader)
{
mLoader = aLoader;
}
/**
* @param aPkgPrefixList comma separated list of package prefixes
*/