The default implementation of this service uses the HTTP session. As the amount of data stored could potentially be quite large (for large numbers of users who use the app all day), it does in effect constitute a memory leak.

An alternative implementation might be more sophisticated (eg implementing an MRU/LRU queue, or using a NoSQL database to store the hints, or simply to disable the functionality altogether).

See Also

  • The Web UI (Wicket viewer) exposes the "clear hints" mixin action that is for use by end-users of the application to clear any UI hints that have accumulated for a domain object.

  • Mutable view models should implement the HintIdProvider in order for hints to work.