Spring Beans Configuration File Validator

This validator is called by the BeansProjectValidator for every modified BeansConfig file defined in the SpringProjectProperties.

It performs the following tests:

  • check for bean overriding (if enabled for the BeansConfigSet)
  • check bean name and aliases are already in use
  • for root beans
    • call RootBeanDefinition.validate()
    • for non-abstract beans check if the bean class is defined in corresponding SpringProject
    • check the bean class for any defined constructor argument
  • for every property check if a corresponding setter is defined in the bean class
  • if factory method is defined then check the bean class accordingly
  • check all inner beans

For every failed test a SpringProblemMarker is created. Problem markers created by BeansConfigValidator


See also: SpringProject, SpringProjectProperties, BeansConfig, BeansConfigSet, BeansCoreModel, BeansProjectValidator, SpringProblemMarker

Attachments