Package com.vaadin.copilot
Class RouteCreator
java.lang.Object
com.vaadin.copilot.RouteCreator
Handles creation of views for new routes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createFlowView
(String route, AccessRequirement accessRequirement) Creates a Flow view for the given route using the given access requirement.void
createHillaView
(String route, AccessRequirement accessRequirement) Creates a Hilla view for the given route using the given access requirement.
-
Constructor Details
-
RouteCreator
-
-
Method Details
-
createFlowView
Creates a Flow view for the given route using the given access requirement.- Parameters:
route
- the path to create a view foraccessRequirement
- the access requirement for the view- Throws:
IOException
-
createHillaView
Creates a Hilla view for the given route using the given access requirement.- Parameters:
route
- the path to create a view foraccessRequirement
- the access requirement for the view- Throws:
IOException
-