|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.core.command.AbstractCommand
com.ail.core.command.Accessor
com.ail.core.command.DroolsAccessor
public class DroolsAccessor
This Accessor supports the use of Drools decision tables as services. Drools (www.drools.org) is an open source rules engine which supports decision tables in the form of spreadsheets conforming to certain conventions. The usage pattern here is to have an instance of this Accessor for each decision table based ruleset. The Accessor expects to find a URL pointing at the decision table in it's Script parameter (generally this is set by configuration).
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
DroolsAccessor()
|
|
| Method Summary | |
|---|---|
void |
activate(Core core,
Type typeSpec)
Factory life cycle method. |
java.lang.Object |
clone()
Clone this object. |
CommandArg |
getArgs()
Get the argument set associated with this command. |
Configuration |
getConfiguration()
Fetch the configuration of the entry point associated with this command. |
java.lang.String |
getConfigurationNamespace()
Return the caller's configuration namespace. |
Core |
getCore()
|
java.lang.String |
getExtend()
|
java.lang.String |
getScript()
|
java.security.Principal |
getSecurityPrincipal()
Get the callers security principal. |
java.lang.String |
getUrl()
|
Version |
getVersion()
Fetch the version of the command (entry point) associated with this command. |
VersionEffectiveDate |
getVersionEffectiveDate()
The Core uses this callback to determin which versions of artefacts it should use on the CoreUser's behalf. |
void |
invoke()
Invoke the command associated with this command object. |
static void |
mergeRulePackages(org.drools.lang.descr.PackageDescr subject,
org.drools.lang.descr.PackageDescr donor)
Merge the rule elements (rules, globals, functions, etc.) from donor into subject. |
void |
resetConfiguration()
Factory reset. |
void |
setArgs(CommandArg args)
Update this Command object's arguments with those taken from the command arg passed in. |
void |
setConfiguration(Configuration properties)
Update the configuration of the entry point associated with this command. |
void |
setExtend(java.lang.String extend)
|
void |
setScript(java.lang.String script)
|
void |
setUrl(java.lang.String url)
|
| Methods inherited from class com.ail.core.command.Accessor |
|---|
getLoggingIndicator, getLoggingIndicatorAsString, setLoggingIndicator, setLoggingIndicatorAsString |
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DroolsAccessor()
| Method Detail |
|---|
public void activate(Core core,
Type typeSpec)
throws java.lang.Exception
AbstractFactory for details.
core -
java.lang.Exceptionpublic void setArgs(CommandArg args)
AbstractCommand
setArgs in class AbstractCommandargs - Source for argumentspublic CommandArg getArgs()
AbstractCommand
getArgs in class AbstractCommand
public static void mergeRulePackages(org.drools.lang.descr.PackageDescr subject,
org.drools.lang.descr.PackageDescr donor)
subject - Package to merge intodonor - Package to merge from
public void invoke()
throws DroolsServiceException
AbstractCommand
invoke in class AbstractCommandDroolsServiceExceptionpublic Version getVersion()
AbstractCommandNote: This method does not return the version of the command.
getVersion in class AbstractCommandpublic Configuration getConfiguration()
AbstractCommand
getConfiguration in interface ConfigurationOwnergetConfiguration in class AbstractCommandpublic void setConfiguration(Configuration properties)
AbstractCommand
setConfiguration in interface ConfigurationOwnersetConfiguration in class AbstractCommandproperties - Properties to replace the current configuration.public void setScript(java.lang.String script)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.String getScript()
public VersionEffectiveDate getVersionEffectiveDate()
CoreUser
getVersionEffectiveDate in interface CoreUserpublic java.security.Principal getSecurityPrincipal()
CoreUser
getSecurityPrincipal in interface CoreUserpublic java.lang.String getConfigurationNamespace()
getConfigurationNamespace in interface CoreUserpublic void resetConfiguration()
ConfigurationOwner
resetConfiguration in interface ConfigurationOwnerpublic Core getCore()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class Typejava.lang.CloneNotSupportedException - If the type cannot be deep cloned.public java.lang.String getExtend()
public void setExtend(java.lang.String extend)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||