org.apache.tapestry5.services
Interface InvalidationEventHub

All Known Subinterfaces:
MessagesSource, ResourceCache
All Known Implementing Classes:
ComponentInstantiatorSourceImpl, ComponentTemplateSourceImpl, InvalidationEventHubImpl, MessagesSourceImpl, ResourceCacheImpl

public interface InvalidationEventHub

An object which manages a list of InvalidationListeners. There are multiple event hub services implementing this interface, each with a specific marker annotation; each can register listeners and fire events; these are based on the type of resource that has been invalidated. Tapestry has built-in support for:

message catalog resources
ComponentMessages marker annotation
component templates
ComponentTemplates marker annotation
component classes
ComponentClasses marker annotation

Since:
5.1.0.0

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).
 

Method Detail

addInvalidationListener

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).



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