Package com.zfabrik.impl.components.java
Class CompilationContextImpl
- java.lang.Object
-
- com.zfabrik.impl.components.java.CompilationContextImpl
-
- All Implemented Interfaces:
com.zfabrik.components.java.build.ICompilationContext
public class CompilationContextImpl extends java.lang.Object implements com.zfabrik.components.java.build.ICompilationContextSimple impl ofICompilationContext.
-
-
Constructor Summary
Constructors Constructor Description CompilationContextImpl(java.lang.String componentName, java.io.File runtimeResources, java.io.File[] sourceFolders, java.io.File outputFolder, java.lang.ClassLoader classPath, com.zfabrik.components.java.IJavaComponent.Part part)Instantiates a new compilation context impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassLoadergetClassPath()Gets a class loader as class path abstraction for this compilationjava.lang.StringgetComponentName()Gets the name of the component to be compiledjava.io.FilegetOutputFolder()Gets the folder to put compile results and that may already contain compilation results from other compilerscom.zfabrik.components.java.IJavaComponent.PartgetPart()IJavaComponent.Partof the component to compilejava.io.FilegetRuntimeResources()Get the runtime resources folder for the Java component currently under construction.java.io.File[]getSourceFolders()Gets the folder containing the source files
-
-
-
Constructor Detail
-
CompilationContextImpl
public CompilationContextImpl(java.lang.String componentName, java.io.File runtimeResources, java.io.File[] sourceFolders, java.io.File outputFolder, java.lang.ClassLoader classPath, com.zfabrik.components.java.IJavaComponent.Part part)Instantiates a new compilation context impl.- Parameters:
componentName- the component namesourceFolders- the source foldersoutputFolder- the output folderclassPath- the class pathpart- the part
-
-
Method Detail
-
getComponentName
public java.lang.String getComponentName()
Description copied from interface:com.zfabrik.components.java.build.ICompilationContextGets the name of the component to be compiled- Specified by:
getComponentNamein interfacecom.zfabrik.components.java.build.ICompilationContext- See Also:
ICompilationContext.getComponentName()
-
getRuntimeResources
public java.io.File getRuntimeResources()
Description copied from interface:com.zfabrik.components.java.build.ICompilationContextGet the runtime resources folder for the Java component currently under construction. This is the place to put any build results and modifications. Do NOT modify the original component resources.- Specified by:
getRuntimeResourcesin interfacecom.zfabrik.components.java.build.ICompilationContext- See Also:
ICompilationContext.getRuntimeResources()
-
getSourceFolders
public java.io.File[] getSourceFolders()
Description copied from interface:com.zfabrik.components.java.build.ICompilationContextGets the folder containing the source files- Specified by:
getSourceFoldersin interfacecom.zfabrik.components.java.build.ICompilationContext- See Also:
ICompilationContext.getSourceFolders()
-
getOutputFolder
public java.io.File getOutputFolder()
Description copied from interface:com.zfabrik.components.java.build.ICompilationContextGets the folder to put compile results and that may already contain compilation results from other compilers- Specified by:
getOutputFolderin interfacecom.zfabrik.components.java.build.ICompilationContext- See Also:
ICompilationContext.getOutputFolder()
-
getClassPath
public java.lang.ClassLoader getClassPath()
Description copied from interface:com.zfabrik.components.java.build.ICompilationContextGets a class loader as class path abstraction for this compilation- Specified by:
getClassPathin interfacecom.zfabrik.components.java.build.ICompilationContext- See Also:
ICompilationContext.getClassPath()
-
getPart
public com.zfabrik.components.java.IJavaComponent.Part getPart()
Description copied from interface:com.zfabrik.components.java.build.ICompilationContextIJavaComponent.Partof the component to compile- Specified by:
getPartin interfacecom.zfabrik.components.java.build.ICompilationContext- See Also:
ICompilationContext.getPart()
-
-