|
Return to www.inductionframework.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.acciente.commons.loader.JavaSourceClassDefLoader
public class JavaSourceClassDefLoader
An class definition loader that compiles and loads Java source files.
| Constructor Summary | |
|---|---|
JavaSourceClassDefLoader()
|
|
JavaSourceClassDefLoader(com.acciente.commons.javac.JavaCompilerManager oJavaCompilerManager,
java.io.File oSourceDirectory)
|
|
| Method Summary | |
|---|---|
ClassDef |
getClassDef(java.lang.String sClassName)
Load the byte code and other information about the specified class |
com.acciente.commons.javac.JavaCompilerManager |
getJavaCompilerManager()
|
java.lang.String |
getPackageNamePrefix()
Returns the package name prefix set by a call to setPackageNamePrefix() or a null string if no package name prefix was ever set. |
ResourceDef |
getResourceDef(java.lang.String sResourceName)
Load the data and other information about the specified resource |
java.io.File |
getSourceDirectory()
Returns the source directory from which this classloader loads java source files |
void |
setJavaCompilerManager(com.acciente.commons.javac.JavaCompilerManager oJavaCompilerManager)
|
void |
setPackageNamePrefix(java.lang.String sPackageNamePrefix)
A package name prefix that represents the prefix that should be removed from the class name passed to loadClass() before attempting to convert the class's package name to a sub-directory off the specified source directory. |
void |
setSourceDirectory(java.io.File sSourceDirectory)
Sets the directory from which this classloader will attempt to java source files |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaSourceClassDefLoader()
public JavaSourceClassDefLoader(com.acciente.commons.javac.JavaCompilerManager oJavaCompilerManager,
java.io.File oSourceDirectory)
| Method Detail |
|---|
public ClassDef getClassDef(java.lang.String sClassName)
throws java.lang.ClassNotFoundException
ClassDefLoader
getClassDef in interface ClassDefLoadersClassName - the name of the class for which a definition is requested
java.lang.ClassNotFoundException - if this loader was able to locate the class definition was
unable to sucessfully load itpublic ResourceDef getResourceDef(java.lang.String sResourceName)
ClassDefLoader
getResourceDef in interface ClassDefLoadersResourceName - the name of the class for which a definition is requested
public java.io.File getSourceDirectory()
public void setSourceDirectory(java.io.File sSourceDirectory)
sSourceDirectory - a File object representing a directory pathpublic java.lang.String getPackageNamePrefix()
public void setPackageNamePrefix(java.lang.String sPackageNamePrefix)
sPackageNamePrefix - null or a package name without a terminating period (e.g: foo.bar and NOT foo.bar.)public com.acciente.commons.javac.JavaCompilerManager getJavaCompilerManager()
public void setJavaCompilerManager(com.acciente.commons.javac.JavaCompilerManager oJavaCompilerManager)
|
Return to www.inductionframework.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||