| java.lang.Object org.drools.agent.PackageProvider
All known Subclasses: org.drools.agent.MockProvider, org.drools.agent.DirectoryScanner, org.drools.agent.FileScanner, org.drools.agent.URLScanner,
PackageProvider | abstract public class PackageProvider (Code) | | All sources of packages must implement this.
author: Michael Neale |
Method Summary | |
static void | applyChanges(RuleBase rb, boolean removeExistingPackages, Package[] ps, AgentEventListener listener) | static void | applyChanges(RuleBase rb, boolean removeExistingPackages, Collection changes, AgentEventListener listener) | abstract void | configure(Properties config) This will be passed the entire config. | abstract Package[] | loadPackageChanges() Perform the scan, adding in any packages changed.
if there are no changes, null should be returned.
If there was an error reading the packages, this will not fail, it will
just do nothing (as there may be a temporary IO issue). | static void | removePackage(String name, RuleBase rb) Remove the package from the rulebase if it exists in it. | public void | setAgentListener(AgentEventListener listener) |
configure | abstract void configure(Properties config)(Code) | | This will be passed the entire config.
|
loadPackageChanges | abstract Package[] loadPackageChanges()(Code) | | Perform the scan, adding in any packages changed.
if there are no changes, null should be returned.
If there was an error reading the packages, this will not fail, it will
just do nothing (as there may be a temporary IO issue).
|
removePackage | static void removePackage(String name, RuleBase rb)(Code) | | Remove the package from the rulebase if it exists in it.
If it does not, does nothing.
|
|
|