Home » Archives for Theodora Fragkouli » Page 6

Author Archives: Theodora Fragkouli

Theodora has graduated from Computer Engineering and Informatics Department in the University of Patras. She also holds a Master degree in Economics from the National and Technical University of Athens. During her studies she has been involved with a large number of projects ranging from programming and software engineering to telecommunications, hardware design and analysis. She works as a junior Software Engineer in the telecommunications sector where she is mainly involved with projects based on Java and Big Data technologies.

Spring Bean Scopes Example

In this example we are going to demonstrate the types of Bean scopes provided by Spring 3.2.3. In Spring a Bean definition is a recipe for creating actual instances of the class defined. The scope of the objects created by a bean definition can be chosen through configuration. The Spring Framework provides five scopes, that are described below: singleton : ...

Read More »

Spring Inner Bean Example

This is an example of how to use an inner Bean definition inside a Bean. In Spring 3.2.3, when a bean is only used as a property of another bean it can be declared as an inner bean. Spring’s XML-based configuration metadata provides the use of <bean/> element inside the <property/> or <constructor-arg/> elements of a bean definition, in order ...

Read More »

How to inject value into Bean properties in Spring

With this example we shall show you how to inject values to Spring Beans properties. Spring’s XML-based configuration metadata supports sub-element types within its <property/> elements for this purpose. Our preferred development environment is Eclipse. We are using Eclipse Juno (4.2) version, along with Maven Integration plugin version 3.1.0. You can download Eclipse from here and Maven Plugin for Eclipse ...

Read More »

Spring 3 Bean Reference Example

With this example we shall show you how to create bean references, using either annotations or xml configuration in Spring 3.2.3. In Spring, a bean can have references to other beans. The Spring container validates the configuration of each bean as the container is created, including the validation of whether bean reference properties refer to valid beans. However, the bean ...

Read More »

Spring 3 Dependency Injection via Constructor and Setter

In this tutorial we are going to demonstrate the Spring Framework implementation of the Inversion of Control (IoC) principle, that is also known as Dependency Injection (DI). Dependency injection (DI) is a process whereby objects define their dependencies, that is, the other objects they work with, only through constructor arguments, arguments to a factory method, or properties that are set ...

Read More »

Spring 3 Java Config @Import Example

In this example we shall show you how to use Spring 3.2.3 Java Configuration, and specifically the @Import annotation. Using Java Configuation, we can define beans and configure Spring without using XML configuration files. In particular, @Configuration annotated classes consist of @Bean annotated methods that define instantiation, configuration, and initialization logic for objects to be managed by the Spring IoC ...

Read More »

Spring 3 Java Config Example

With this example we are going to demonstrate how to use Spring 3.2.3 Java Configuration. Java Configuration provides a pure-Java means of configuring the Spring container. By taking advantage of Java language features such as annotations and generics, Java Configuration allows users to express configuration logic and metadata directly in code, alleviating any need for XML. With Java Configuation, bean ...

Read More »

Spring 3 Hello World Example

This is an example of how to create a simple Hello World Bean in Spring 3.2.3. The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications – on any kind of deployment platform. Our preferred development environment is Eclipse. We are using Eclipse Juno (4.2) version, along with Maven Integration plugin version 3.1.0. You can ...

Read More »