define a @Required-style annotation by yourself and enable it in xml file, this make the check of property setting in the container, and developers no longer to write code to check whether all properties are set. Furthermore, it didn't check whether a property is set to be null