Class AbstractBDMJarBuilder
java.lang.Object
org.bonitasoft.engine.business.data.generator.AbstractBDMJarBuilder
- Direct Known Subclasses:
ClientBDMJarBuilder,ServerBDMJarBuilder
- Author:
- Matthieu Chaffotte
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBDMJarBuilder(AbstractBDMCodeGenerator bdmCodeGenerator) protectedAbstractBDMJarBuilder(AbstractBDMCodeGenerator bdmCodeGenerator, JDTCompiler compiler) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSourceFilesToDirectory(org.bonitasoft.engine.bdm.model.BusinessObjectModel bom, File directory) byte[]build(org.bonitasoft.engine.bdm.model.BusinessObjectModel bom, org.apache.commons.io.filefilter.IOFileFilter fileFilter) Add BDM compile dependencies required to compile the BDM classes.
-
Constructor Details
-
AbstractBDMJarBuilder
@Deprecated protected AbstractBDMJarBuilder(AbstractBDMCodeGenerator bdmCodeGenerator, JDTCompiler compiler) Deprecated. -
AbstractBDMJarBuilder
-
-
Method Details
-
build
public byte[] build(org.bonitasoft.engine.bdm.model.BusinessObjectModel bom, org.apache.commons.io.filefilter.IOFileFilter fileFilter) throws BDMJarGenerationException - Parameters:
bom- the business object model to generate the jar fromfileFilter- filter the entries to be added or not in generated jar- Returns:
- the content of the generated jar
- Throws:
BDMJarGenerationException- if an error occurs during the generation of the jar
-
getCompileDependencies
Add BDM compile dependencies required to compile the BDM classes. It uses the current classloader to find the required classes and retrieve their corresponding jar files.- Throws:
ClassNotFoundException- if a required class cannot be found in the current classloader
-
addSourceFilesToDirectory
protected void addSourceFilesToDirectory(org.bonitasoft.engine.bdm.model.BusinessObjectModel bom, File directory) throws CodeGenerationException - Throws:
CodeGenerationException
-