1 package com.bonevich.util.dependency;
2
3 /***
4 * Provides notice to dependents of access to a dynamic attribute.
5 */
6 public final class Dynamic extends Sentry
7 {
8 public void onGet()
9 {
10 // Establish dependency between the current update
11 // and this attribute
12 recordDependent();
13 }
14
15 public void onSet()
16 {
17 // When a dynamic attribute changes,
18 // its dependents become out-of-date
19 invalidateDependents();
20 }
21 } /*** end class Dynamic */
This page was automatically generated by Maven