Layouts in Android

android-icon

Android Layout acts as a container of UI elements. It decides how the different UI elements are arranged and rendered to the user. This article explores the various types of layouts available in the Android development with examples. If you have issues on Android programming, please post it in the comments section. Declaring Layouts Layouts […]

Spring Classpath Scanning & Managed Components

spring

In my previous articles I have explained about the some of the popular annotations in Spring @Required, @Autowired and @Qualifier. You could note from these posts that we declared all the beans or components in XML bean configuration file; this helps Spring container detect and register beans or components. In this post I shall discuss […]

How to set up android development environment?

android-icon

This tutorial describes how you can set up a development environment for building Android applications in Eclipse IDE. In my future articles, I will be writing about the various programming techniques and features available in the Android development. Android is the leading Operating System in the smartphone market. This makes android is the most popular […]

@Resource, @PostConstruct and @PreDestroy Annotations Example

spring

In this post I shall cover the JSR250 annotations. Introduced in Spring 2.5, it added support for JSR-250 based annotations which include @Resource, @PostConstruct and @PreDestroy annotations. In my previous articles I have explained about the some of the popular annotations in Spring @Required, @Autowired and @Qualifier. Also please read about How to write Custom Spring Callback Methods? also read: follow […]

@Qualifier Annotation in Spring

spring

In this post I shall cover another annotation @Qualifier which helps fine-tune annotation-based autowiring. In the previous post we saw how we could use @Autowired annotation on setter methods, fields and constructors. There may be scenarios when we create more than one bean of the same type and want to wire only one of them […]

@Autowired Annotation in Spring

spring

In my previous post I mentioned about the use of @Required annotation for container configuration. In this post I shall cover the @Autowired annotation. Introduced in Spring 2.5, the @Autowired annotation can be applied to On setter methods On Properties On Constructors @Autowired with arguments also read: follow us on @twitter and @facebook Spring Tutorials ( Collection for Spring […]

@Required Annotation in Spring

spring

Since Spring 2.5, annotation-based configuration has been an alternative to XML setups. Annotation based configuration rely on the bytecode metadata for wiring up components instead of angle-bracket declarations. Annotations can be used on the relevant class, method, or field declaration. Annotation injection is performed before XML injection, thus the latter configuration will override the former […]

Write your Extension Endpoints for Spring IOC Container

spring

In the previous post Custom Spring Callback Methods I discussed about the customizing bean lifecycle callback methods which are required at the time of bean initialization and its destruction. In this post I shall cover another aspect of Spring Container Extension Points. Note:Extension Points are well defined exposed places/hooks for others to provide extended functionality. […]

How to write Custom Spring Callback Methods?

spring

A Spring process follows bean based approach.The Spring bean is created, managed and dispensed by the Spring IoC container. Each Spring bean has a lifecycle and the lifecycle has to undergo the following stages: Instantiate – The Spring container instantiates the bean. Populate properties- Spring IoC container injects the bean’s properties. Set Bean Name- Spring […]

Custom Scope for Spring Beans

spring

In my previous posts Spring bean scopes (Singleton and Prototype) with example and Spring bean scopes (Request, Session, Global Session) with example I discussed about the bean scopes in spring. There’s one more scope which I forgot to mention, its the Thread scope. The spring documentation states that As of Spring 3.0, a thread scope […]