public void service(Event event, Scope scope) throws Exception { final StubEvent stubevt = event instanceof StubEvent ? (StubEvent) event : null; final String uuid = stubevt != null ? stubevt.getUuid() : null; if (uuid == null || uuid.equals(getUuid())) { super.service(event, scope); } else if (_evtmap != null) { for (Object[] evtinf : _evtmap) { if (uuid.equals(evtinf[0])) { //matched ((EventListenerMap) evtinf[1]).service(event, scope, this, stubevt.getCommand()); break; //done } } postToNonStubAncestor(stubevt); } }
public void service(Event event, Scope scope) throws Exception { if (event instanceof StubEvent) { EventListenerMap map = ((ComponentCtrl) this).getEventListenerMap(); if (map != null) { map.service(event, scope, this, ((StubEvent) event).getCommand()); } else postToNonStubAncestor((StubEvent) event); } else { super.service(event, scope); } }