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
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ViewFactory.ViewAndController
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ViewFactory.ViewAndController
createViewAndController(java.lang.String viewTypeUri, it.tidalwave.util.Id viewId, SiteNode siteNode)
Creates a new pair of View and Controller.
-
-
-
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 URIviewId
- the view idsiteNode
- the node this view is created for- Returns:
- the new pair
- Throws:
it.tidalwave.util.NotFoundException
- if no view component is foundHttpStatusException
- if a component asked to return a specific HTTP status
-
-