org.apache.jackrabbit.spi.commons
Class EventBundleImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.EventBundleImpl
All Implemented Interfaces:
Serializable, EventBundle

public class EventBundleImpl
extends Object
implements EventBundle, Serializable

EventBundleImpl implements a serializable EventBundle.

See Also:
Serialized Form

Constructor Summary
EventBundleImpl(Collection events, boolean isLocal)
          Creates a new event bundle with events.
 
Method Summary
 Iterator getEvents()
          Returns the events of this bundle.
 boolean isLocal()
          Returns true if this event bundle is associated with a change that was initiated by a local session info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventBundleImpl

public EventBundleImpl(Collection events,
                       boolean isLocal)
Creates a new event bundle with events.

Parameters:
events - the events for this bundle.
isLocal - if this events were created due to a local change.
Method Detail

getEvents

public Iterator getEvents()
Returns the events of this bundle.

Specified by:
getEvents in interface EventBundle
Returns:
the events of this bundle.

isLocal

public boolean isLocal()
Returns true if this event bundle is associated with a change that was initiated by a local session info. Event bundles for external changes will aways return false.

Specified by:
isLocal in interface EventBundle
Returns:
true if this event bundle is associated with a local change, false if this event bundle contains external changes.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.