Interface AsyncContextHandler


  • @Role
    public interface AsyncContextHandler
    Called to give a chance to an handler to do something with the values associated to a cached rendering (inject some required skin extension for example).
    Since:
    10.10RC1
    Version:
    $Id: 8b3e7ce073b2f8b883ad3c8ab162132fa4a9a7d9 $
    • Method Detail

      • use

        void use​(Collection<Object> values)
        Parameters:
        values - the values to restore
      • addHTMLHead

        void addHTMLHead​(StringBuilder head,
                         Collection<Object> values)
        Add to the returned HTML head tags required elements (required js/css, metadatas, etc.).
        Parameters:
        head - the head to fill
        values - the values for which to add HTML meta (if needed)
      • addHTMLHead

        default void addHTMLHead​(StringBuilder head,
                                 Collection<Object> values,
                                 boolean scripts)
        Add to the returned HTML head tags required elements (required js/css, metadatas, etc.).
        Parameters:
        head - the head to fill
        values - the values for which to add HTML meta (if needed)
        scripts - true if the scripts should be included
        Since:
        11.9RC1
      • addHTMLScripts

        default void addHTMLScripts​(StringBuilder head,
                                    Collection<Object> values)
        Add to the returned HTML the required script elements.
        Parameters:
        head - the head to fill
        values - the values for which to add HTML meta (if needed)
        Since:
        11.9RC1