usage of Autowire

Can i use autowire for the Customcomponen ?

Will it cause session lock exception ?