Consider if:
I have multiple
UI
classes & I want to map them to different URLs so that each of them handles a different branch of URLs. Seems a typical situation to me.
What comes to mind:
I have to declare multiple
VaadinServlet
and declare each UI as
init-param
of that servlet, right?
Problem:
Assume that I want to change my
VaadinServlet
to a custom subclass in the future, I would have to change every servlet declaration.
DRY
applies, I think.
So I thought maybe I’m missing something. Is there another (better) way of doing this, than declaring multiple servlet elements?