Eager Loading


This utility class improves ULC's built in lazy loading feature. The main disadvantage of ULC's current lazy loading implementation is the fact that it always requires an extra server round trip to fetch the data. This has the following drawbacks:
  • a significant delay over slow networks
  • twice as many round trips as necessary
  • intial data is blank as it is lazily fetched with an an extra round trip
  • updated data first becomes blank as it is lazily fetched with an extra round trip

How to use

Register the provided EagerLoadingHandler as round trip listener. That's all!


ApplicationContext.addRoundTripListener(new EagerLoadingHandler());