public class OpenL extends Object
OpenLConfigurator| Modifier and Type | Field and Description |
|---|---|
static String |
OPENL_J_NAME |
static String |
OPENL_JAVA_CE_NAME |
static String |
OPENL_JAVA_NAME |
static String |
OPENL_JAVA_RULE_NAME |
| Constructor and Description |
|---|
OpenL() |
| Modifier and Type | Method and Description |
|---|---|
IOpenBinder |
getBinder()
Gets binder that configured for current OpenL instance.
|
static OpenL |
getInstance(String name)
Gets instance of
OpenL with given name. |
static OpenL |
getInstance(String name,
IUserContext userContext)
Gets an instance of OpenL.
|
static OpenL |
getInstance(String name,
IUserContext userContext,
IOpenLBuilder builder)
Gets an instance of OpenL.
|
String |
getName()
Gets name of OpenL instance.
|
IOpenParser |
getParser()
Gets parser that configured for current OpenL instance.
|
IOpenVM |
getVm()
Gets virtual machine which used during rules execution.
|
void |
setBinder(IOpenBinder binder)
Sets binder to current OpenL instance.
|
static void |
setConfig(OpenLConfigurator config)
Change default OpenLConfigurator implementation to another.
|
void |
setName(String name)
Sets name of OpenL instance.
|
void |
setParser(IOpenParser parser)
Sets parser to current OpenL instance.
|
void |
setVm(IOpenVM openVM)
Sets virtual machine.
|
String |
toString() |
public static final String OPENL_J_NAME
public static final String OPENL_JAVA_NAME
public static final String OPENL_JAVA_CE_NAME
public static final String OPENL_JAVA_RULE_NAME
public static void setConfig(OpenLConfigurator config)
config - new OpenLConfiguratorpublic static OpenL getInstance(String name)
OpenL with given name.name - OpenL nameOpenLConfigurationExceptionpublic static OpenL getInstance(String name, IUserContext userContext)
name - IOpenL name, for example org.openl.java12.v101userContext - user contextOpenLConfigurationException#remove,
IUserContextpublic static OpenL getInstance(String name, IUserContext userContext, IOpenLBuilder builder)
name - IOpenL nameuserContext - user contextbuilder - IOpenLBuilder instance which used to build new instance of OpenL if that does not existOpenLConfigurationExceptionIUserContextpublic String getName()
public void setName(String name)
name - name stringpublic IOpenParser getParser()
IOpenParser instancepublic void setParser(IOpenParser parser)
parser - IOpenParser instancepublic IOpenVM getVm()
IOpenVM instancepublic IOpenBinder getBinder()
IOpenBinder instancepublic void setBinder(IOpenBinder binder)
binder - IOpenBinder instanceCopyright © 2004–2021 OpenL Tablets. All rights reserved.