method injection and bean injection examples