Interface ViewFactory

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ViewFactory
    A factory for Views.
    Author:
    Fabrizio Giudici
    Stereotype:
    Factory
    • Method Detail

      • createViewAndController

        @Nonnull
        ViewFactory.ViewAndController createViewAndController​(@Nonnull
                                                              java.lang.String viewTypeUri,
                                                              @Nonnull
                                                              it.tidalwave.util.Id viewId,
                                                              @Nonnull
                                                              SiteNode siteNode)
                                                       throws it.tidalwave.util.NotFoundException,
                                                              HttpStatusException
        Creates a new pair of View and Controller.
        Parameters:
        viewTypeUri - the view type URI
        viewId - the view id
        siteNode - the node this view is created for
        Returns:
        the new pair
        Throws:
        it.tidalwave.util.NotFoundException - if no view component is found
        HttpStatusException - if a component asked to return a specific HTTP status