Spring: Dependency Injection in XML, using constructor or setter injection

To declare a bean in Spring’s XML-based configuration is to add <bean> element. Example: <bean class=”com.oreilly.entities.RedSox”/> For lack of an explicitly given ID, the bean will be named…

Spring: Dependency Injection using Java Configuration

The key to creating a JavaConfig class is to annotate it with @Configuration. The @Configuration annotation identifies this is as configuration class and it’s expected to contains on…

Spring: What is the concept of a “container” and what is it’s lifecycle?

In Spring based application, your application object lives in the spring container. Spring Container creates the objects, wires them together, configures them and manages their lifecycle. The container…

Spring: What is meant by “application-context” and how you create one?

ApplicationContext is one of Spring container which is the core component of Spring. Another Spring core container is BeanFactory. Spring comes with several flavours of a application context:…

Spring: What is an interface and what are the advantages of making use them in Java?

Interface looks like a class but not a class. An Interface can have methods and variables just like the class but the method declared in the interface are…

Spring: What is Dependency Injection and what are the advantages?

D.A.I – “Work Smart, Have Fun and Make a Difference”

Swift: Computed Property

Computed properties. A computed property is not directly stored in memory. Instead it uses the “get” and “set” keywords to compute a result. Get:This is run when the…

Swift: How to Use CocoaPods with Swift

Swift: Unwrapping Optional Types