Class 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>
    Breadcrums 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:
    Serialized Form
    • Constructor Detail

      • CachedModel

        public CachedModel​(String value)
      • CachedModel

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

      • 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>