org.drools.guvnor.server.builder
Class ContentPackageAssembler

java.lang.Object
  extended by org.drools.guvnor.server.builder.ContentPackageAssembler

public class ContentPackageAssembler
extends Object

This assembles packages in the BRMS into binary package objects, and deals with errors etc. Each content type is responsible for contributing to the package.


Nested Class Summary
 class ContentPackageAssembler.ErrorLogger
          This is passed in to the compilers so extra errors can be added.
 
Constructor Summary
ContentPackageAssembler(AssetItem assetToBuild)
          Use this if you want to build and compile just the one asset.
ContentPackageAssembler(PackageItem pkg)
          Use this if you want to build the whole package.
ContentPackageAssembler(PackageItem pkg, boolean compile)
           
ContentPackageAssembler(PackageItem assetPackage, boolean compile, String buildMode, String statusOperator, String statusDescriptionValue, boolean enableStatusSelector, String categoryOperator, String categoryValue, boolean enableCategorySelector, String selectorConfigName)
           
ContentPackageAssembler(RuleAsset asset, PackageItem packageItem)
           
 
Method Summary
 void createBuilder()
           
 org.drools.rule.Package getBinaryPackage()
          I've got a package people !
 BRMSPackageBuilder getBuilder()
           
 String getDRL()
           
 List<ContentAssemblyError> getErrors()
           
 boolean hasErrors()
           
 boolean isPackageConfigurationInError()
          This will return true if there is an error in the package configuration or functions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentPackageAssembler

public ContentPackageAssembler(PackageItem pkg)
Use this if you want to build the whole package.

Parameters:
pkg - The package.

ContentPackageAssembler

public ContentPackageAssembler(PackageItem pkg,
                               boolean compile)
Parameters:
pkg - The package.
compile - true if we want to build it. False and its just for looking at source.

ContentPackageAssembler

public ContentPackageAssembler(PackageItem assetPackage,
                               boolean compile,
                               String buildMode,
                               String statusOperator,
                               String statusDescriptionValue,
                               boolean enableStatusSelector,
                               String categoryOperator,
                               String categoryValue,
                               boolean enableCategorySelector,
                               String selectorConfigName)
Parameters:
assetPackage - The package.
compile - true if we want to build it. False and its just for looking at source.
selectorConfigName -

ContentPackageAssembler

public ContentPackageAssembler(AssetItem assetToBuild)
Use this if you want to build and compile just the one asset.


ContentPackageAssembler

public ContentPackageAssembler(RuleAsset asset,
                               PackageItem packageItem)
Method Detail

createBuilder

public void createBuilder()

isPackageConfigurationInError

public boolean isPackageConfigurationInError()
This will return true if there is an error in the package configuration or functions.

Returns:

getBinaryPackage

public org.drools.rule.Package getBinaryPackage()
I've got a package people !


hasErrors

public boolean hasErrors()

getErrors

public List<ContentAssemblyError> getErrors()

getBuilder

public BRMSPackageBuilder getBuilder()

getDRL

public String getDRL()


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.