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

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


org.drools.compiler
Class PackageBuilderConfiguration

java.lang.Object
  extended by org.drools.compiler.PackageBuilderConfiguration

public class PackageBuilderConfiguration
extends Object

This class configures the package compiler. There are options to use various flavours of runtime compilers. Apache JCI is used as the interface to all the runtime compilers. You may also use this class to override the class loader defaults that are otherwise used. Normally you will not need to look at this class, unless you want to override the defaults. You can also use the system property "drools.compiler" to set the desired compiler. The valid values are "ECLIPSE" and "JANINO" only. The default Java language level is 1.4 but it can be configured using the system property "drools.compiler.lnglevel". Valid values are 1.4, 1.5 and 1.6.


Field Summary
static String DEFAULT_LANGUAGE_LEVEL
           
static String[] DIALECTS
           
static int ECLIPSE
           
static int JANINO
           
static String[] LANGUAGE_LEVELS
           
 
Constructor Summary
PackageBuilderConfiguration()
           
 
Method Summary
 ClassLoader getClassLoader()
           
 int getCompiler()
           
 String getDialect()
           
 String getJavaLanguageLevel()
           
 void setClassLoader(ClassLoader classLoader)
          Use this to override the classloader that will be used for the rules.
 void setCompiler(int compiler)
          Set the compiler to be used when building the rules semantic code blocks.
 void setDialect(String dialect)
           
 void setJavaLanguageLevel(String level)
          You cannot set language level below 1.5, as we need static imports, 1.5 is now the default.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ECLIPSE

public static final int ECLIPSE
See Also:
Constant Field Values

JANINO

public static final int JANINO
See Also:
Constant Field Values

LANGUAGE_LEVELS

public static final String[] LANGUAGE_LEVELS

DEFAULT_LANGUAGE_LEVEL

public static final String DEFAULT_LANGUAGE_LEVEL
See Also:
Constant Field Values

DIALECTS

public static final String[] DIALECTS
Constructor Detail

PackageBuilderConfiguration

public PackageBuilderConfiguration()
Method Detail

getCompiler

public int getCompiler()

getJavaLanguageLevel

public String getJavaLanguageLevel()

setJavaLanguageLevel

public void setJavaLanguageLevel(String level)
You cannot set language level below 1.5, as we need static imports, 1.5 is now the default.

Parameters:
level -

getDialect

public String getDialect()

setDialect

public void setDialect(String dialect)

setCompiler

public void setCompiler(int compiler)
Set the compiler to be used when building the rules semantic code blocks. This overrides the default, and even what was set as a system property.


getClassLoader

public ClassLoader getClassLoader()

setClassLoader

public void setClassLoader(ClassLoader classLoader)
Use this to override the classloader that will be used for the rules.



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