Package org.apache.jackrabbit.jcr2spi.observation

Examples of org.apache.jackrabbit.jcr2spi.observation.InternalEventListener


        // If cache behavior is observation register a hierarchy listener which is
        // notified about all changes. Otherwise just add a hierarchy listener which
        // is only notified on changes for which client event listeners have been
        // installed. Note: this listener has to be the first one called in order
        // for the hierarchy to be consistent with the event (See JCR-2293).
        InternalEventListener listener = createHierarchyListener(hierarchyManager);
        if (cacheBehaviour == CacheBehaviour.OBSERVATION) {
            addEventListener(listener);
        } else {
            listeners.add(listener);
        }
View Full Code Here


    /**
     * @return a new InternalEventListener
     */
    private InternalEventListener createHierarchyListener(HierarchyManager hierarchyMgr) {
        InternalEventListener listener = new HierarchyEventListener(this, hierarchyMgr, cacheBehaviour);
        return listener;
    }
View Full Code Here

        // If cache behavior is observation register a hierarchy listener which is
        // notified about all changes. Otherwise just add a hierarchy listener which
        // is only notified on changes for which client event listeners have been
        // installed. Note: this listener has to be the first one called in order
        // for the hierarchy to be consistent with the event (See JCR-2293).
        InternalEventListener listener = createHierarchyListener(hierarchyManager);
        if (cacheBehaviour == CacheBehaviour.OBSERVATION) {
            addEventListener(listener);
        } else {
            listeners.add(listener);
        }
View Full Code Here

    /**
     * @return a new InternalEventListener
     */
    private InternalEventListener createHierarchyListener(HierarchyManager hierarchyMgr) {
        InternalEventListener listener = new HierarchyEventListener(this, hierarchyMgr, cacheBehaviour);
        return listener;
    }
View Full Code Here

     * @param listeners the internal event listeners.
     */
    private static EventFilter[] getEventFilters(Collection listeners) {
        List filters = new ArrayList();
        for (Iterator it = listeners.iterator(); it.hasNext(); ) {
            InternalEventListener listener = (InternalEventListener) it.next();
            filters.addAll(listener.getEventFilters());
        }
        return (EventFilter[]) filters.toArray(new EventFilter[filters.size()]);
    }
View Full Code Here

    /**
     * @return a new InternalEventListener
     */
    private InternalEventListener createHierarchyListener(HierarchyManager hierarchyMgr) {
        InternalEventListener listener = new HierarchyEventListener(this, hierarchyMgr, cacheBehaviour);
        return listener;
    }
View Full Code Here

     * @param listeners the internal event listeners.
     */
    private static EventFilter[] getEventFilters(Collection listeners) {
        List filters = new ArrayList();
        for (Iterator it = listeners.iterator(); it.hasNext(); ) {
            InternalEventListener listener = (InternalEventListener) it.next();
            filters.addAll(listener.getEventFilters());
        }
        return (EventFilter[]) filters.toArray(new EventFilter[filters.size()]);
    }
View Full Code Here

    /**
     * @return a new InternalEventListener
     */
    private InternalEventListener createHierarchyListener(HierarchyManager hierarchyMgr) {
        InternalEventListener listener = new HierarchyEventListener(this, hierarchyMgr, cacheBehaviour);
        return listener;
    }
View Full Code Here

     * @param listeners the internal event listeners.
     */
    private static EventFilter[] getEventFilters(Collection listeners) {
        List filters = new ArrayList();
        for (Iterator it = listeners.iterator(); it.hasNext(); ) {
            InternalEventListener listener = (InternalEventListener) it.next();
            filters.addAll(listener.getEventFilters());
        }
        return (EventFilter[]) filters.toArray(new EventFilter[filters.size()]);
    }
View Full Code Here

    /**
     * @return a new InternalEventListener
     */
    private InternalEventListener createHierarchyListener(HierarchyManager hierarchyMgr) {
        InternalEventListener listener = new HierarchyEventListener(this, hierarchyMgr, cacheBehaviour);
        return listener;
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.jcr2spi.observation.InternalEventListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.