public class SyncConfigChangesAspect
extends java.lang.Object
ConfigSyncManager.
This automates the process of config synchronization with the config owners.| Constructor and Description |
|---|
SyncConfigChangesAspect() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterApplyConfig(WidgetConfig config)
The method is called after
WidgetConfig.applyConfig(WidgetConfig) is executed. |
void |
afterConfigSet(ConfigOwner target,
WidgetConfig config)
The method is called after config reference is saved in the
config owner.
|
java.lang.Object |
aroundSyncConfigChanges(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
Triggered around methods marked with
SyncConfigChanges
annotation. |
void |
beforeConfigValueSet(WidgetConfig config)
The method is called after config field is assigned.
|
public java.lang.Object aroundSyncConfigChanges(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
throws java.lang.Throwable
SyncConfigChanges
annotation. The method starts and stops synchronization scopes
using the methods ConfigSyncManager.markScopeStart() and
ConfigSyncManager.markScopeEnd().thisJoinPoint - A join point reference.java.lang.Throwable - Any exceptions are untouched propagated out.public void afterConfigSet(ConfigOwner target, WidgetConfig config)
target - ConfigOwner reference.config - WidgetConfig reference.public void beforeConfigValueSet(WidgetConfig config)
ConfigSyncManager to
be synchronized later with the config owner.config - WidgetConfig reference.public void afterApplyConfig(WidgetConfig config)
WidgetConfig.applyConfig(WidgetConfig) is executed. The target
config reference is then registered with ConfigSyncManager to be
synchronized later with the config owner.config - WidgetConfig reference.