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

PackageBuilderConfiguration - JBoss RULES 3.0.6 API 英文版文档


org.drools.compiler
Class PackageBuilderConfiguration

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

public class PackageBuilderConfiguration
extends java.lang.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 java.lang.String DEFAULT_LANGUAGE_LEVEL
           
static int ECLIPSE
           
static int JANINO
           
static java.lang.String[] LANGUAGE_LEVELS
           
 
Constructor Summary
PackageBuilderConfiguration()
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
           
 int getCompiler()
           
 java.lang.String getJavaLanguageLevel()
           
 void setClassLoader(java.lang.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 setJavaLanguageLevel(java.lang.String level)
           
 
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 java.lang.String[] LANGUAGE_LEVELS

DEFAULT_LANGUAGE_LEVEL

public static final java.lang.String DEFAULT_LANGUAGE_LEVEL
See Also:
Constant Field Values
Constructor Detail

PackageBuilderConfiguration

public PackageBuilderConfiguration()
Method Detail

getCompiler

public int getCompiler()

getJavaLanguageLevel

public java.lang.String getJavaLanguageLevel()

setJavaLanguageLevel

public void setJavaLanguageLevel(java.lang.String level)

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 java.lang.ClassLoader getClassLoader()

setClassLoader

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