java.lang.Object
com.evolveum.midpoint.web.component.breadcrumbs.CachedModel
All Implemented Interfaces:
Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<String>, org.apache.wicket.util.io.IClusterable

public class CachedModel extends Object implements org.apache.wicket.model.IModel<String>
Breadcrumbs text is not changing over time, we'll try to use this behavior to cache string value created by underlying IModel object. When value is cached, underlying model is forgotten to save space - we don't want to get value when creating cached model (too soon). Created by Viliam Repan (lazyman).
See Also:
  • Constructor Details

    • CachedModel

      public CachedModel(String value)
    • CachedModel

      public CachedModel(org.apache.wicket.model.IModel<String> valueModel)
  • Method Details

    • getObject

      public String getObject()
      Specified by:
      getObject in interface org.apache.wicket.model.IModel<String>
    • detach

      public void detach()
      Specified by:
      detach in interface org.apache.wicket.model.IDetachable
      Specified by:
      detach in interface org.apache.wicket.model.IModel<String>