O'Reilly logo

Java EE Development with Eclipse by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Method Interception

In this section we shall discuss the method interceptor mechanism provided by the Spring AOP framework.

Creating a Spring bean class

First we need to create a Spring bean, which is an object managed, instantiated, and configured by Spring Framework. We shall create a JavaBean class for the Spring bean. The JavaBean object implements a journal catalog with properties representing the catalog's journal name, publisher, edition, title, and author. The bean class also provides accessor methods for the bean properties. We need to create an interface, CatalogInterface, for the bean class. Select the project node and select File | New | Other. In the New wizard select Java | Interface and click on Next. Specify a package name (spring.catalog ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required