If you need to support legacy way of creating view...
# codingconventions
m
If you need to support legacy way of creating views, you can initialize its properties in constructor, leaving all required effectively-final fields as truly final.