public void onEvent()

in slingbucks/src/main/java/org/apache/sling/slingbucks/server/ConfirmedOrdersObserver.java [100:116]


    public void onEvent(EventIterator it) {
        while (it.hasNext()) {
            // Just accumulate the changed paths - we'll do the actual work in 
            // a separate non-event method, as this should return quickly.
            try {
                final String path = it.nextEvent().getPath();
                if(path.endsWith(SlingbucksConstants.CONFIRMED_ORDER_PROPERTY_NAME)) {
                    synchronized (changedPropertyPaths) {
                        log.debug("onEvent: property {} changed", path);
                        changedPropertyPaths.add(path);
                    }
                }
            } catch(Exception e) {
                log.warn(e.getClass().getName() + " in onEvent", e);
            }
        }
    }