Book Image

Spring 2.5 Aspect Oriented Programming

Book Image

Spring 2.5 Aspect Oriented Programming

Overview of this book

Developing powerful web applications with clean, manageable code makes the maintenance process much easier. Aspect-Oriented Programming (AOP) is the easiest and quickest way to achieve such results. Spring is the only Java framework to offer AOP features. The combined power of Spring and AOP gives a powerful and flexible platform to develop and maintain feature-rich web applications quickly. This book will help you to write clean, manageable code for your Java applications quickly, utilizing the combined power of Spring and AOP. You will master the concepts of AOP by developing several real-life AOP-based applications with the Spring Framework, implementing the basic components of Spring AOP: Advice, Joinpoint, Pointcut, and Advisor. This book will teach you everything you need to know to use AOP with Spring. It starts by explaining the AOP features of Spring and then moves ahead with configuring Spring AOP and using its core classes, with lot of examples. It moves on to explain the AspectJ support in Spring. Then you will develop a three-layered example web application designed with Domain-Driven Design (DDD) and built with Test-Driven Development methodology using the full potential of AOP for security, concurrency, caching, and transactions.
Table of Contents (13 chapters)

PostgreSQL


PostgreSQL is an open-source object-relational database system.

We use PostgreSQL to store the information used by the SpringFreshfruitStore application and to run the tests.

We will see how to download and install PostgreSQL on Linux MacOSX, and Microsoft Windows.

Ubuntu Linux

Let's see how to install PostgreSQL as a service on Linux with Ubuntu Package Manager.

Open the Synaptic Package Manager and search for PostgreSQL.

We check PostgreSQL.

We look for the entry pgadmin and check it.

We install it.

Now we have to set a password on postgres. In the shell we write:

sudo su postgres -c psql template1

postgres=# will appear.

We key in ALTER USER postgres WITH PASSWORD 'postgres';—in this way we have set the password postgres to the user postgres; postgres=# will appear. Finally again we key in \q to end.

In the following image we see the command in the shell:

To start, we go to System Tools | pgAdmin III.

MacOSX

Let's see how to download and install PostgreSQL as a service...