4. Looking up an Updater.

Listing 4. Looking up an Updater.


public Updater getUpdater(Object target)
{ return getUpdaterForClass(target.getClass());
}

public Updater getUpdaterForClass(Class targetClass)
{ if (updaters.containsKey(targetClass))
  { return (Updater)updaters.get(targetClass);
  }
  return getUpdaterForClass(targetClass.getSuperclass());
}

Featured

Most   Popular
Upcoming Events

AppTrends

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.