|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gadgets.renderer.internal.cache.ApplicationEventListener
public class ApplicationEventListener
Applinks aware event listener that clears shindig's cache whenever an applink is registered or deleted.
| Constructor Summary | |
|---|---|
ApplicationEventListener(com.atlassian.event.api.EventPublisher eventPublisher,
ClearableCacheProvider cacheProvider)
Creates a new ApplicationEventListener. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Registers this event listener in the event publisher. |
void |
onClearCache(ClearHttpCacheEvent clearShindigCacheEvent)
When the host applicaiton fires a clear shindig cache event this cache should be cleared! |
void |
onCreate(com.atlassian.applinks.api.event.ApplicationLinkAddedEvent applicationLinkEvent)
Clears shindig's cache when a new applink has been created in UAL. |
void |
onDelete(com.atlassian.applinks.api.event.ApplicationLinkDeletedEvent applicationLinkEvent)
Clears shindig's cache when an applink has been deleted in UAL. |
void |
onUpdateId(com.atlassian.applinks.api.event.ApplicationLinksIDChangedEvent applicationLinkEvent)
Clears shindig's cache when an applink id has been modified in UAL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationEventListener(com.atlassian.event.api.EventPublisher eventPublisher,
ClearableCacheProvider cacheProvider)
eventPublisher - an EventPublishercacheProvider - a cachprovider that can have its cache cleared.| Method Detail |
|---|
@EventListener public void onClearCache(ClearHttpCacheEvent clearShindigCacheEvent)
clearShindigCacheEvent - a clear cache event@EventListener public void onCreate(com.atlassian.applinks.api.event.ApplicationLinkAddedEvent applicationLinkEvent)
applicationLinkEvent - a ApplicationLinkAddedEvent@EventListener public void onDelete(com.atlassian.applinks.api.event.ApplicationLinkDeletedEvent applicationLinkEvent)
applicationLinkEvent - a ApplicationLinkDeletedEvent@EventListener public void onUpdateId(com.atlassian.applinks.api.event.ApplicationLinksIDChangedEvent applicationLinkEvent)
applicationLinkEvent - an ApplicationLinksIDChangedEventpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||