2. Binder interface.

Listing 2. Binder interface.


public interface Binder
{
  void addUpdater(Updater updater);
  boolean hasUpdater(Object target);
  boolean hasUpdaterForClass(Class targetClass);
  Updater getUpdater(Object target);
  Updater getUpdaterForClass(Class targetClass);
  void addTarget(Object target, String resourceKey);
  void applyTo(Object target);
  void applyToAll();
}