Injecting beans through spring