Package com.zfabrik.impl.compiler
Class AllCompiler
- java.lang.Object
-
- com.zfabrik.resources.provider.Resource
-
- com.zfabrik.impl.compiler.AllCompiler
-
- All Implemented Interfaces:
com.zfabrik.components.java.build.ICompiler
public class AllCompiler extends com.zfabrik.resources.provider.Resource implements com.zfabrik.components.java.build.ICompiler
-
-
Constructor Summary
Constructors Constructor Description AllCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
as(java.lang.Class<T> clz)
Retrieve a typed representation of the resource.boolean
compile(com.zfabrik.components.java.build.ICompilationContext compilationContext)
A general purpose compiler api using a class loader as class path abstraction.void
init(com.zfabrik.components.java.build.ICompilerContext context)
Compiler initialization-
Methods inherited from class com.zfabrik.resources.provider.Resource
as, handle, init, init, invalidate
-
-
-
-
Method Detail
-
as
public <T> T as(java.lang.Class<T> clz)
Description copied from class:com.zfabrik.resources.provider.Resource
Retrieve a typed representation of the resource.- Overrides:
as
in classcom.zfabrik.resources.provider.Resource
- Parameters:
clz
- expected return type- Returns:
- the expected return type instance represented by the resource or
null
if the type facade is not supported.
-
init
public void init(com.zfabrik.components.java.build.ICompilerContext context)
Description copied from interface:com.zfabrik.components.java.build.ICompiler
Compiler initialization- Specified by:
init
in interfacecom.zfabrik.components.java.build.ICompiler
-
compile
public boolean compile(com.zfabrik.components.java.build.ICompilationContext compilationContext)
Description copied from interface:com.zfabrik.components.java.build.ICompiler
A general purpose compiler api using a class loader as class path abstraction. Returns true if the compilation passed otherwise it returnsfalse
. This method to be implemented for part specific handling. It defaults to invocation ofICompiler.compile(String, File[], File, ClassLoader)
.- Specified by:
compile
in interfacecom.zfabrik.components.java.build.ICompiler
- Returns:
- true, iff compilation succeeds
-
-