|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.anadix.impl.AbstractElementFactory
public abstract class AbstractElementFactory
Abstract class for all ElementFactory implementations
| Constructor Summary | |
|---|---|
protected |
AbstractElementFactory(org.drools.runtime.StatefulKnowledgeSession ksession)
Constructor |
| Method Summary | ||
|---|---|---|
static
|
createFactory(Class<T> clazz,
org.drools.runtime.StatefulKnowledgeSession session)
Creates a new instance of ElementFactory of given class. |
|
Collection<Element> |
getElements()
Gets all Element instances in the underlying session |
|
protected org.drools.runtime.StatefulKnowledgeSession |
getSession()
Gets the session |
|
void |
insertElement(Element element)
Inserts element using this ElementFactory |
|
void |
insertEvent(String entrypoint,
Object event)
Inserts an object using specific entry point using this ElementFactory |
|
void |
setAsGlobal(String name)
Sets this instance of ElementFactory as a global variable with given name |
|
void |
setGlobal(String name,
Object instance)
Sets a global variable with given name with given value |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractElementFactory(org.drools.runtime.StatefulKnowledgeSession ksession)
ksession - - StatefulKnowledgeSession to be used to insert elements to| Method Detail |
|---|
public static <T extends ElementFactory> T createFactory(Class<T> clazz,
org.drools.runtime.StatefulKnowledgeSession session)
clazz - class of ElementFactory to constructsession - session to use within this ElementFactory
protected org.drools.runtime.StatefulKnowledgeSession getSession()
public void insertElement(Element element)
insertElement in interface ElementFactoryelement - - element to insertpublic Collection<Element> getElements()
getElements in interface ElementFactory
public void setGlobal(String name,
Object instance)
setGlobal in interface ElementFactoryname - - name of the global to setinstance - -value of the global to setpublic void setAsGlobal(String name)
setAsGlobal in interface ElementFactoryname - - name of the global to set with this instance
public void insertEvent(String entrypoint,
Object event)
insertEvent in interface ElementFactoryentrypoint - - entry point to insert the object throughevent - - object to insert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||