Class AbstractBDMJarBuilder

java.lang.Object
org.bonitasoft.engine.business.data.generator.AbstractBDMJarBuilder
Direct Known Subclasses:
ClientBDMJarBuilder, ServerBDMJarBuilder

public abstract class AbstractBDMJarBuilder extends Object
Author:
Matthieu Chaffotte
  • Constructor Details

  • 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 from
      fileFilter - 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

      protected Set<File> getCompileDependencies() throws ClassNotFoundException
      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