Using annotation instead of xml for bean definition