Package com.atlassian.jira.plugin
Class JiraCacheResetter
java.lang.Object
com.atlassian.jira.plugin.JiraCacheResetter
- All Implemented Interfaces:
InitializingComponent
A component that maintains resets main application caches upon plugin events.
- Since:
- v5.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Avoiding passing unfinished this to event manager. -
Constructor Summary
ConstructorsConstructorDescriptionJiraCacheResetter
(com.atlassian.event.api.EventPublisher eventPublisher, ReplicationPauserManager replicationPauserManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Just for ordering,InitializingComponent
are initialized before other components and here we want to initialize ASAP as we listen toJiraPluginCacheResetEvent
which can be triggered byPluginEnabledEvent
.
-
Constructor Details
-
JiraCacheResetter
public JiraCacheResetter(com.atlassian.event.api.EventPublisher eventPublisher, ReplicationPauserManager replicationPauserManager)
-
-
Method Details
-
afterInstantiation
Just for ordering,InitializingComponent
are initialized before other components and here we want to initialize ASAP as we listen toJiraPluginCacheResetEvent
which can be triggered byPluginEnabledEvent
. SeeComponentManager.runInitializingComponents()
- Specified by:
afterInstantiation
in interfaceInitializingComponent
- Throws:
Exception
-