Adds constructor bean creation

...rather than using null constructor and setters,
uses constructor all in one go.