Class InvalidationEventHubImpl
- java.lang.Object
 - 
- org.apache.tapestry5.internal.event.InvalidationEventHubImpl
 
 
- 
- All Implemented Interfaces:
 InvalidationEventHub
- Direct Known Subclasses:
 ComponentTemplateSourceImpl,InternalComponentInvalidationEventHubImpl,MessagesSourceImpl,ResourceChangeTrackerImpl
public class InvalidationEventHubImpl extends Object implements InvalidationEventHub
Base implementation class for classes (especially services) that need to manage a list ofInvalidationListeners. 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedInvalidationEventHubImpl(boolean productionMode) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInvalidationCallback(Runnable callback)Adds a callback that is invoked when an underlying tracked resource has changed.voidaddInvalidationListener(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).voidclearOnInvalidation(Map<?,?> map)Adds a callback that clears the map.protected voidfireInvalidationEvent()Notifies all listeners/callbacks. 
 - 
 
- 
- 
Constructor Detail
- 
InvalidationEventHubImpl
protected InvalidationEventHubImpl(boolean productionMode)
 
 - 
 
- 
Method Detail
- 
fireInvalidationEvent
protected final void fireInvalidationEvent()
Notifies all listeners/callbacks. 
- 
addInvalidationCallback
public final void addInvalidationCallback(Runnable callback)
Description copied from interface:InvalidationEventHubAdds a callback that is invoked when an underlying tracked resource has changed. Does nothing in production mode.- Specified by:
 addInvalidationCallbackin interfaceInvalidationEventHub
 
- 
clearOnInvalidation
public final void clearOnInvalidation(Map<?,?> map)
Description copied from interface:InvalidationEventHubAdds a callback that clears the map.- Specified by:
 clearOnInvalidationin interfaceInvalidationEventHub
 
- 
addInvalidationListener
public final void addInvalidationListener(InvalidationListener listener)
Description copied from interface:InvalidationEventHubAdds 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). Does nothing in production mode.- Specified by:
 addInvalidationListenerin interfaceInvalidationEventHub
 
 - 
 
 -