Bean configuration using Java codes with annotations. (3)