Autowiring by Name (Using @Qualifier with @Component annotation)

In previous post under Spring Core, I showed with example how to use “@Qualifier” annotation with “@Bean” annotation. In this post under Spring Core, I will show with example how to use “@Qualifier” annotation with “@Component” annotation. For our example I will create an interface named “IMovie” as shown below IMovie package core.package44; public interface…… Continue reading Autowiring by Name (Using @Qualifier with @Component annotation)

Using @Lookup annotation with arguments

In this post under Spring Core, I will explain with example how to use “@Lookup” annotation with arguments. In the previous post under Spring Core, I showed the purpose and how to use “@Lookup” annotation without any arguments. Just for recap,1) “@Lookup” annotation is applied on the method level2) It tells Spring to create a…… Continue reading Using @Lookup annotation with arguments

Using @Lookup annotation without arguments

In this post under Spring Core, I will explain with example the purpose of “@Lookup” annotation used without any arguments. “@Lookup” annotation is applied only on methods. “@Lookup” annotation can be used with or without arguments. In this post I will show how to use “@Lookup” annotation without arguments. In case of “@Lookup” annotation without…… Continue reading Using @Lookup annotation without arguments