public class ConfigFieldSetterAspect
extends java.lang.Object
com.goldencode.p2j.ui.*Config
classes.
Only the client-side uses this aspect. All calls from the server-side are ignored. The field
assignments during WidgetConfig
instantiation are also ignored.
AspectJ Point Cuts are called during custom setters and only when the field is set outside of this code:
constructors
WidgetConfig.readExternal(java.io.ObjectInput)
and WidgetConfig.writeExternal(java.io.ObjectOutput)
WidgetConfig.applyConfig(com.goldencode.p2j.ui.WidgetConfig)
com.goldencode.p2j.ui
package
When collecting the changes, ClientConfigManager.getConfigUpdates()
will use the IDs of
the collected WidgetConfig
instances, and only the instance with an associated active
config will be used.
Constructor and Description |
---|
ConfigFieldSetterAspect() |
Modifier and Type | Method and Description |
---|---|
void |
beforeSetField(WidgetConfig cfg,
org.aspectj.lang.JoinPoint.StaticPart sp)
Aspect which intercepts the assignment of public fields from the
com.goldencode.p2j.ui.*Config classes. |
public void beforeSetField(WidgetConfig cfg, org.aspectj.lang.JoinPoint.StaticPart sp)
com.goldencode.p2j.ui.*Config
classes.cfg
- The widget configuration.sp
- The details about the static part of this join point.