|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.agent.ChangeSetHelperImpl
public class ChangeSetHelperImpl
Helper class to programmatically add and remove Resources from a change-set. This class also has the possibility to apply its internal change-set to a kagent.
| Constructor Summary | |
|---|---|
ChangeSetHelperImpl()
Creates a new instance of ChangeSetHelperImpl |
|
| Method Summary | |
|---|---|
void |
addModifiedResource(org.drools.io.Resource resource)
Adds a Resource as modified. |
void |
addNewResource(org.drools.io.Resource resource)
Adds a new Resource to the internal ChangeSet |
void |
addRemovedResource(org.drools.io.Resource resource)
Adds a Resource as removed. |
void |
applyChangeSet(org.drools.agent.KnowledgeAgent kagent)
Synchronously apply the internal ChangeSet to a KnowledgeAgent. |
ChangeSetImpl |
getChangeSet()
Returns the internal ChangeSet |
void |
reset()
Reset the internal ChangeSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeSetHelperImpl()
ChangeSetHelperImpl
| Method Detail |
|---|
public void addNewResource(org.drools.io.Resource resource)
resource - the resource to be added as Newpublic void addModifiedResource(org.drools.io.Resource resource)
resource - the resource to be added as Modifiedpublic void addRemovedResource(org.drools.io.Resource resource)
resource - the resource to be added as Removedpublic void applyChangeSet(org.drools.agent.KnowledgeAgent kagent)
kagent -
RuntimeException - if the agent fails while compiling the resources.public void reset()
public ChangeSetImpl getChangeSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||