Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
 import  org.kie.api.event.rule.RuleRuntimeEventListener;
 import  org.kie.internal.runtime.StatelessKnowledgeSession;
    private final StatelessKnowledgeSession delegate;
    private final Map<WorkingMemoryEventListener, RuleRuntimeEventListener> wimListeners = new HashMap<WorkingMemoryEventListener, RuleRuntimeEventListener>();
    private final Map<ProcessEventListener, org.kie.api.event.process.ProcessEventListener> processListeners = new HashMap<ProcessEventListener, org.kie.api.event.process.ProcessEventListener>();
    private final Map<AgendaEventListener, org.kie.api.event.rule.AgendaEventListener> agendaListeners = new HashMap<AgendaEventListener, org.kie.api.event.rule.AgendaEventListener>();
    public StatelessKnowledgeSessionAdapter(StatelessKnowledgeSession delegate) {
        this. = delegate;
    }
    public Globals getGlobals() {
        return new GlobalsAdapter(.getGlobals());
    }
    public void setGlobal(String identiferObject value) {
        .setGlobal(identifervalue);
    }
    public <T> T execute(Command<T> command) {
        throw new UnsupportedOperationException("This operation is no longer supported");
    }
    public void addEventListener(ProcessEventListener listener) {
        org.kie.api.event.process.ProcessEventListener adapted = new ProcessEventListenerAdapter(listener);
        .put(listeneradapted);
        .addEventListener(adapted);
    }
    public void removeEventListener(ProcessEventListener listener) {
        .removeEventListener(.remove(listener));
    }
        return .keySet();
    }
    public void execute(Object object) {
        .execute(object);
    }
    public void execute(Iterable objects) {
        .execute(objects);
    }
    public void addEventListener(WorkingMemoryEventListener listener) {
        RuleRuntimeEventListener adapted = new WorkingMemoryEventListenerAdapter(listener);
        .put(listeneradapted);
        .addEventListener(adapted);
    }
    public void removeEventListener(WorkingMemoryEventListener listener) {
        .removeEventListener(.remove(listener));
    }
        return .keySet();
    }
    public void addEventListener(AgendaEventListener listener) {
        org.kie.api.event.rule.AgendaEventListener adapted = new AgendaEventListenerAdapter(listener);
        .put(listeneradapted);
        .addEventListener(adapted);
    }
    public void removeEventListener(AgendaEventListener listener) {
        .removeEventListener(.remove(listener));
    }
        return .keySet();
    }
    @Override
    public int hashCode() {
        return .hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        return obj instanceof StatelessKnowledgeSessionAdapter && .equals(((StatelessKnowledgeSessionAdapter)obj).);
    }
New to GrepCode? Check out our FAQ X