org.apache.tapestry5.internal.event
Class InvalidationEventHubImpl

java.lang.Object
  extended by org.apache.tapestry5.internal.event.InvalidationEventHubImpl
All Implemented Interfaces:
InvalidationEventHub
Direct Known Subclasses:
ComponentInstantiatorSourceImpl, ComponentTemplateSourceImpl, MessagesSourceImpl, ResourceCacheImpl

public class InvalidationEventHubImpl
extends Object
implements InvalidationEventHub

Base implementation class for classes (especially services) that need to manage a list of InvalidationListeners.


Constructor Summary
InvalidationEventHubImpl()
           
 
Method Summary
 void addInvalidationListener(InvalidationListener listener)
          Adds a listener, who needs to know when an underlying resource of a given category has changed (so that the receiver may discard any cached data that may have been invalidated).
protected  void fireInvalidationEvent()
          Notifies all listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvalidationEventHubImpl

public InvalidationEventHubImpl()
Method Detail

fireInvalidationEvent

protected final void fireInvalidationEvent()
Notifies all listeners.


addInvalidationListener

public final void addInvalidationListener(InvalidationListener listener)
Description copied from interface: InvalidationEventHub
Adds a listener, who needs to know when an underlying resource of a given category has changed (so that the receiver may discard any cached data that may have been invalidated).

Specified by:
addInvalidationListener in interface InvalidationEventHub


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.