Interface IPageProvider

    • Method Detail

      • wasExpired

        boolean wasExpired()
        Returns whether the provided page was expired prior to this access.
        Returns:
        true if the page was created after its original instance expired.
      • getRenderCount

        Integer getRenderCount()
        Returns the number of times this page has been rendered.
        Returns:
        the number of times this page has been rendered.
      • detach

        void detach()
        Detaches the page if it has been loaded.
      • hasPageInstance

        boolean hasPageInstance()
        If this provider returns existing page, regardless if it was already created by PageProvider itself or is or can be found in the data store. The only guarantee is that by calling PageProvider.getPageInstance() this provider will return an existing instance and no page will be created.
        Returns:
        if provides an existing page
      • doesProvideNewPage

        boolean doesProvideNewPage()
        Returns whether or not the page instance held by this provider has been instantiated by the provider.
        Returns:
        true iff the page instance held by this provider was instantiated by the provider
        Throws:
        IllegalStateException - if this method is called and the provider does not yet have a page instance, ie if getPageInstance() has never been called on this provider