站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

IRuleAsset (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.brms.server.contenthandler
Interface IRuleAsset

All Known Implementing Classes:
BRXMLContentHandler, DecisionTableXLSHandler, DRLFileContentHandler, DSLRuleContentHandler

public interface IRuleAsset

This inferface indicates that an asset is a rule asset content type, ie not a model, dsl etc that supports package compilation.

Author:
Michael Neale

Method Summary
 void assembleDRL(BRMSPackageBuilder builder, AssetItem asset, StringBuffer buf)
          This will be called when a rule asset is to render itself to DRL source.
 void compile(BRMSPackageBuilder builder, AssetItem asset, ContentPackageAssembler.ErrorLogger logger)
          This will be called when the asset is required to compile itself, in the context of the given builder.
 

Method Detail

compile

void compile(BRMSPackageBuilder builder,
             AssetItem asset,
             ContentPackageAssembler.ErrorLogger logger)
             throws DroolsParserException,
                    IOException
This will be called when the asset is required to compile itself, in the context of the given builder.

Throws:
DroolsParserException
IOException

assembleDRL

void assembleDRL(BRMSPackageBuilder builder,
                 AssetItem asset,
                 StringBuffer buf)
This will be called when a rule asset is to render itself to DRL source.



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