Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
 import  org.kie.api.event.rule.ObjectDeletedEvent;
 import  org.kie.api.event.rule.ObjectInsertedEvent;
 import  org.kie.api.event.rule.ObjectUpdatedEvent;
public class WorkingMemoryEventListenerAdapter implements org.kie.api.event.rule.WorkingMemoryEventListener {
    private final WorkingMemoryEventListener delegate;
        this. = delegate;
    }
    public void objectInserted(final ObjectInsertedEvent event) {
            public FactHandle getFactHandle() {
                return new FactHandleAdapter(event.getFactHandle());
            }
            public Object getObject() {
                return event.getObject();
            }
            public PropagationContext getPropagationContext() {
                throw new UnsupportedOperationException(".getPropagationContext -> TODO");
            }
            public KnowledgeRuntime getKnowledgeRuntime() {
                return new KnowledgeRuntimeAdapter((org.kie.internal.runtime.KnowledgeRuntime)event.getKieRuntime());
            }
        });
    }
    public void objectUpdated(ObjectUpdatedEvent event) {
        throw new UnsupportedOperationException("org.drools.impl.adapters.WorkingMemoryEventListenerAdapter.objectUpdated -> TODO");
    }
    public void objectDeleted(ObjectDeletedEvent event) {
        throw new UnsupportedOperationException("org.drools.impl.adapters.WorkingMemoryEventListenerAdapter.objectDeleted -> TODO");
    }
New to GrepCode? Check out our FAQ X