public Iterator<EventBean> iterator() { if (context.getCustomConfiguration() != null && context.getCustomConfiguration().equals(ITERATE)) { List<EventBean> events = new ArrayList<EventBean>(); for (Object item : data) { events.add(context.getEventFactory().wrap(item)); } return events.iterator(); } return Collections.<EventBean>emptyList().iterator(); }
public void update(EventBean[] newData, EventBean[] oldData) { lastUpdateNew = newData; lastUpdateOld = oldData; context.getOutputStream().update(newData, oldData); }